TableRowItem
public struct TableRowItem : Equatable
Data structure for each row in the DataTable
-
Leading accessory items.
Declaration
Swift
public let leadingAccessories: [AccessoryItem]
-
Trailing accessory item.
Declaration
Swift
public let trailingAccessory: AccessoryItem?
-
Row data.
Declaration
Swift
public internal(set) var data: [DataItem] { get }
-
Selected image in editing mode.
Declaration
Swift
public let selectedImage: Image?
-
Desekected image in edting mode.
Declaration
Swift
public let deSelectedImage: Image?
-
Read-only property for all cells in this row. If a cell’s
isReadonly
of this row is set, then that value is used.nil
means it isfalse
.Declaration
Swift
public var isReadonly: Bool?
-
Public initializer for TableRowItem
Declaration
Swift
public init(leadingAccessories: [AccessoryItem], trailingAccessory: AccessoryItem?, data: [DataItem], selectedImage: Image? = nil, deSelectedImage: Image? = nil, isReadonly: Bool? = nil)
Parameters
leadingAccessories
Leading accessory items.
trailingAccessory
Trailing accessory item.
data
Row data.
selectedImage
Selected image in editing mode.
deSelectedImage
Desekected image in edting mode.
isReadonly
Whether the row is read-only or not in inline editing mode.
-
Public initializer for TableRowItem
Declaration
Swift
public init(data: [DataItem], selectedImage: Image? = nil, deSelectedImage: Image? = nil, isReadonly: Bool? = nil)
Parameters
data
Row data.
selectedImage
Selected image in editing mode.
deSelectedImage
Desekected image in edting mode.
isReadonly
Whether the row is read-only or not for inline editing mode.
-
check equality
Declaration
Swift
public static func == (lhs: TableRowItem, rhs: TableRowItem) -> Bool