Data Table

  • 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
    
    See more

    Declaration

    Swift

    open class FUIDataTable : UIView
  • FUIDataTableModel is the data structure being used in FUIDataTable view.

    Code Usage:

    let header = FUITableRowItem(leadingAccessories: [], trailingAccessory: nil, data: titles)
    let model = FUIDataTableModel(headerData: header, rowData: res, isFirstRowSticky: true, isFirstColumnSticky: true, showListView: true)
    model.columnAttributes = ...
    model.didSelectRowAt = { _ in
    print(model.selectedIndexes)
    }
    
    See more

    Declaration

    Swift

    public class FUIDataTableModel
  • Column attribute for FUIDataTableModel

    See more

    Declaration

    Swift

    public struct FUITableColumnAttribute
  • An image item for FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableImageItem : FUITableItem
  • An enum representing the different item styles that a FUIDataTable can have.

    See more

    Declaration

    Swift

    public enum FUIDataItemType
  • A protocol defines style of a FUITableItem.

    See more

    Declaration

    Swift

    public protocol FUITableItem
  • Data structure for each row in the FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableRowItem
  • Text item for FUIDataTable

    See more

    Declaration

    Swift

    public struct FUITableTextItem : FUITableItem