FUIGridRowTextItem

open class FUIGridRowTextItem : FUIGridRowItem, FUIGridRowItemBinding

The FUIGridRowTextItem conforms to FUIGridRowItem protocol which contains a UILabel for representing a text/number item in FUIGridTableViewCell. Setting a NumberFormatter if you want to format the number.

Theming

Supported style classes

fdlFUIGridRowTextItem_label
fdlFUIGridRowTextItem_font_firstTextItem
  • The text of the item.

    Declaration

    Swift

    public var text: String! { get set }
  • The number of the item. Read text property to get the string representation of the number.

    Declaration

    Swift

    public var number: NSNumber? { get set }
  • The attributed text of the item.

    Declaration

    Swift

    public var attributedText: NSAttributedString! { get set }
  • The font of the text.

    Declaration

    Swift

    public var font: UIFont? { get set }
  • The color of the text.

    Declaration

    Swift

    public var textColor: UIColor? { get set }
  • Optional mapping to an text-type property in the object view layout

    Declaration

    Swift

    public var binding: FUIGridTableViewCell.ObjectViewProperty.Text?
  • The alignment of the text.

    Declaration

    Swift

    public var textAlignment: NSTextAlignment { get set }
  • The maximum number of lines that text can have.

    Declaration

    Swift

    public var numberOfLines: Int { get set }
  • The behavior of the last line of the text.

    Declaration

    Swift

    public var lineBreakMode: NSLineBreakMode { get set }
  • The NumberFormatter instance formats the textual representation of number in the cell.

    Declaration

    Swift

    public var numberFormatter: NumberFormatter? { get set }
  • Returns the FUIGridRowItemType enum value for FUIGridRowTextItem.

    Declaration

    Swift

    public private(set) var type: FUIGridRowItemType { get set }
  • Initializes and returns a newly allocated FUIGridRowTextItem object with the specified text.

    Declaration

    Swift

    public init(text: String)

    Parameters

    text

    The text of the item.

    Return Value

    An initialized FUIGridRowTextItem object.

  • Initializes and returns a newly allocated FUIGridRowTextItem object with the specified number and number formatter.

    Declaration

    Swift

    public init(number: NSNumber, formatter: NumberFormatter? = nil)

    Parameters

    number

    The number of the item.

    formatter

    The number formatter of the item.

    Return Value

    An initialized FUIGridRowTextItem object.