DataListItem

public struct DataListItem : DataItemTextComponent, CheckBinding, Equatable

List item for DataTable

  • Declaration

    Swift

    public let type: DataItemType
  • String for text item.

    Declaration

    Swift

    public var text: String
  • font, if both font and uifont are provided, uifont is used.

    Declaration

    Swift

    public var font: Font?
  • uifont

    Declaration

    Swift

    public var uifont: UIFont?
  • Line limit for item.

    Declaration

    Swift

    public var lineLimit: Int?
  • Foreground color for text item.

    Declaration

    Swift

    public var textColor: Color?
  • Binding rule.

    Declaration

    Swift

    public var binding: ObjectViewProperty.Text?
  • Determines whether the cell is read-only or not for inline editing mode. nil means it is false. A cell’s isReadonly is determined by the value of itself, the row, and the column. If only one of these three values, is set then that value is used. If two or three values are set, then the higher priority of value is used. The order of priority from high to low is: cell, row, and column.

    Declaration

    Swift

    public var isReadonly: Bool?
  • Public initializer for DataTextItem

    Declaration

    Swift

    public init(_ text: String, _ font: Font? = nil, _ textColor: Color? = nil, _ binding: ObjectViewProperty.Text? = nil, lineLimit: Int? = nil, isReadonly: Bool? = nil)

    Parameters

    text

    String for text item.

    font

    Font for item

    textColor

    Foreground color for text Item.

    binding

    Binding rule.

    lineLimit

    Line limit for item.

    isReadonly

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

  • Public initializer for DataTextItem

    Declaration

    Swift

    public init(text: String, uifont: UIFont? = nil, textColor: Color? = nil, binding: ObjectViewProperty.Text? = nil, lineLimit: Int? = nil, isReadonly: Bool? = nil)

    Parameters

    text

    String for text item.

    uifont

    UIFont for item

    textColor

    Foreground color for text Item.

    binding

    Binding rule.

    lineLimit

    Line limit for item.

    isReadonly

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

  • check equality

    Declaration

    Swift

    public static func == (lhs: DataListItem, rhs: DataListItem) -> Bool