DataItem

public protocol DataItem

A protocol defines style of a DataItem.

  • Returns the DataItemType enum value for the item.

    Declaration

    Swift

    var type: DataItemType { get }
  • Is the cell read-only or not for the 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 value 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

    var isReadonly: Bool? { get set }
  • convert itself to a SwiftUI View

    Declaration

    Swift

    func toView() -> AnyView