FieldDropdownLayout

@objcMembers open class FieldDropdownLayout: FieldLayout

Class for a FieldDropdown-based Layout.

  • The list of options that should be presented when rendering this layout

    Declaration

    Swift

    open var options: [FieldDropdown.Option]
  • The currently selected index of self.options

    Declaration

    Swift

    open var selectedIndex: Int
  • The option tuple of the currently selected index

    Declaration

    Swift

    open var selectedOption: FieldDropdown.Option?
  • Updates self.fieldDropdown.selectedIndex from the given value. If the value was changed, the layout tree is updated to reflect the change.

    Declaration

    Swift

    open func updateSelectedIndex(_ selectedIndex: Int)