FUIFilterValueView

public class FUIFilterValueView : UIControl, Initializable, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout

Undocumented

  • The value of the cell.

    Declaration

    Swift

    public var value: [Int] { get set }
  • Indicates whether the user may select multiple values. The default is true.

    Note

    Setting this property will be ignored when property filterGroup is not nil.

    Declaration

    Swift

    public var allowsMultipleSelection: Bool { get set }
  • Using an FUIFilterGroup to initialize the allowsMultipleSelection, allowsEmptySelection, valueOptions, and value properties. The valueOptions will be the title properties of the FUIFilterItem objects in the group. The value property will be set based on the isActive property of items.

    Note

    The isActive property of the items will be updated according to the user actions. There is no need to update them in the onChangeHandler.

    Declaration

    Swift

    public var filterGroup: FUIFilterGroup? { get set }
  • Indicates whether empty selection is allowed. The default is true.

    Note

    Setting this property will be ignored when property filterGroup is not nil.

    Declaration

    Swift

    public var allowsEmptySelection: Bool
  • The width of the segment in the control. The default is 73. Setting this property has no effect if apportionsSegmentWidthsByContent is true.

    Declaration

    Swift

    public var segmentWidth: CGFloat { get set }
  • The height of the segment in the control. If segmentHeight is nil, use the AutoLayout system height of the first segment as the unique height for all segments.

    Declaration

    Swift

    public var segmentHeight: CGFloat? { get set }
  • Undocumented

    Declaration

    Swift

    public var isEditable: Bool { get set }
  • The style of the cell. It can be configured as .fixed for the same width, or .flexible for the dynamic width.

    Declaration

    Swift

    public var buttonStyle: FUIFilterButtonSize { get set }
  • Indicates whether the control attempts to adjust segment widths based on their content widths. Default is false.

    Declaration

    Swift

    public var apportionsSegmentWidthsByContent: Bool { get set }
  • Implementation of change handler. Is invoked on changes to the value property.

    Declaration

    Swift

    public var onChangeHandler: (([Int]) -> Void)?
  • Default constructor.

    Declaration

    Swift

    public required init(style: FUIFilterButtonSize)

    Parameters

    style

    The style for this FUIFilterValueView

  • Undocumented

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)
  • Declaration

    Swift

    public required convenience init()
  • Undocumented

    Declaration

    Swift

    public func getSegmentedControlWidth() -> CGFloat
  • Undocumented

    Declaration

    Swift

    public var isStacked: Bool { get set }
  • Sets the button attributes for the specified control state.

    This is used to customize the style for the buttons. If this is not set, the default Fiori style attributes will be used.

    Declaration

    Swift

    public func setButtonAttributes(_ buttonAttributes: FUISegmentedControlButtonAttributes, for state: FUIControlState)

    Parameters

    buttonAttributes
    state

    The FUIControlState attributes to be applied.

  • Undocumented

    Declaration

    Swift

    public func updateAccessibilityLabelForSegmendControl()
  • :nodoc

    Declaration

    Swift

    public override var canBecomeFocused: Bool { get }