ColumnAttribute

public struct ColumnAttribute

Column attribute.

  • Setting the width for each column.

    See more

    Declaration

    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 isReadonly within this column is set, then that value is used instead. nil means it is false.

    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

    textAlignment

    Text alignment in each column.

    width

    Setting the width for each column.

    isReadonly

    Whether the column is read-only or not in inline editing mode.