FUIFilterValueView
@MainActor
public class FUIFilterValueView : UIControl, Initializable, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
Undocumented
-
The value of the cell.
Declaration
Swift
@MainActor public var value: [Int] { get set } -
Indicates whether the user may select multiple values. The default is
true.Declaration
Swift
@MainActor public var allowsMultipleSelection: Bool { get set } -
Using an
FUIFilterGroupto initialize theallowsMultipleSelection,allowsEmptySelection,valueOptions, andvalueproperties. ThevalueOptionswill be thetitleproperties of theFUIFilterItemobjects in the group. Thevalueproperty will be set based on theisActiveproperty of items.Note
TheisActiveproperty of the items will be updated according to the user actions. There is no need to update them in theonChangeHandler.Declaration
Swift
@MainActor public var filterGroup: FUIFilterGroup? { get set } -
Indicates whether empty selection is allowed. The default is
true.Declaration
Swift
@MainActor public var allowsEmptySelection: Bool -
The width of the segment in the control. The default is 73. Setting this property has no effect if
apportionsSegmentWidthsByContentistrue.Declaration
Swift
@MainActor public var segmentWidth: CGFloat { get set } -
The height of the segment in the control. If
segmentHeightisnil, use theAutoLayoutsystem height of the first segment as the unique height for all segments.Declaration
Swift
@MainActor public var segmentHeight: CGFloat? { get set } -
Undocumented
Declaration
Swift
@MainActor public var isEditable: Bool { get set } -
The style of the cell. It can be configured as
.fixedfor the same width, or.flexiblefor the dynamic width.Declaration
Swift
@MainActor 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
@MainActor public var apportionsSegmentWidthsByContent: Bool { get set } -
Implementation of change handler. Is invoked on changes to the
valueproperty.Declaration
Swift
@MainActor public var onChangeHandler: (([Int]) -> Void)? -
Default constructor.
Declaration
Swift
@MainActor public required init(style: FUIFilterButtonSize)Parameters
styleThe style for this
FUIFilterValueView -
Undocumented
Declaration
Swift
@MainActor public required init?(coder aDecoder: NSCoder) -
Declaration
Swift
@MainActor public required convenience init() -
Undocumented
Declaration
Swift
@MainActor public func getSegmentedControlWidth() -> CGFloat -
Undocumented
Declaration
Swift
@MainActor 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
@MainActor public func setButtonAttributes(_ buttonAttributes: FUISegmentedControlButtonAttributes, for state: FUIControlState)Parameters
buttonAttributesThe
FUISegmentedControlButtonAttributesto be set.stateThe
FUIControlStateattributes to be applied. -
Undocumented
Declaration
Swift
@MainActor public func updateAccessibilityLabelForSegmendControl() -
:nodoc
Declaration
Swift
@MainActor public override var canBecomeFocused: Bool { get }