FUIDataTable

open class FUIDataTable : UIView

A FUIDataTable is a view that displaying data in either a list view or a grid table view.

Code usage:

let model = FUIDataTableModel(headerData: header, rowData: res, isHeaderSticky: true, isFirstColumnSticky: true, showListView: true)
model.columnAttributes = ...
model.didSelectRowAt = { _ in
    print(model.selectedIndexes)
}
model.selectedIndexes = [2, 3]
let dataTable = FUIDataTable(model: model)
dataTable.dataTableBackgroundColor = .white
  • Data table’s data model.

    Declaration

    Swift

    public var model: FUIDataTableModel!
  • Boolean for switching the data table in normal and editing mode.

    Declaration

    Swift

    public var isEditing: Bool { get set }
  • Setting background color for data table.

    Declaration

    Swift

    public var dataTableBackgroundColor: UIColor? { get set }
  • Public initializer for FUIDataTable.

    Declaration

    Swift

    public init(model: FUIDataTableModel)

    Parameters

    model
  • Undocumented

    Declaration

    Swift

    required public init?(coder: NSCoder)