ColumnAttribute
public struct ColumnAttribute
Column attribute.
-
Setting the width for each column.
See moreDeclaration
Swift
public enum Width -
Text alignment in each column.
Declaration
Swift
public var textAlignment: TextAlignment -
Setting the width for each column.
Declaration
Swift
public var width: Width -
Read-only property for all cells in this column. If a cell’s
isReadonlywithin this column is set, then that value is used instead.nilmeans it isfalse.Declaration
Swift
public var isReadonly: Bool? -
used by date or time column
Declaration
Swift
public var dateFormatter: DateFormatter? -
Set this property to customize the format of duration text. If this property is not set, using the default text format. The default text format is “%d Hrs %d Min” where %d is the number of hours and minutes.
Declaration
Swift
public var durationTextFormat: String { get set } -
Declaration
Swift
public func dateFormatter(for dataItemType: DataItemType) -> DateFormatter -
Public initializer for ColumnAttribute
Declaration
Swift
public init(textAlignment: TextAlignment = .leading, width: Width = .flexible, isReadonly: Bool? = nil)Parameters
textAlignmentText alignment in each column.
widthSetting the width for each column.
isReadonlyWhether the column is read-only or not in inline editing mode.