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
.Declaration
Swift
public var allowsMultipleSelection: Bool { get set }
-
Using an
FUIFilterGroup
to initialize theallowsMultipleSelection
,allowsEmptySelection
,valueOptions
, andvalue
properties. ThevalueOptions
will be thetitle
properties of theFUIFilterItem
objects in the group. Thevalue
property will be set based on theisActive
property of items.Note
TheisActive
property of the items will be updated according to the user actions. There is no need to update them in theonChangeHandler
.Declaration
Swift
public var filterGroup: FUIFilterGroup? { get set }
-
Indicates whether empty selection is allowed. The default is
true
.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
istrue
.Declaration
Swift
public var segmentWidth: CGFloat { get set }
-
The height of the segment in the control. If
segmentHeight
isnil
, use theAutoLayout
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
The
FUISegmentedControlButtonAttributes
to be set.state
The
FUIControlState
attributes to be applied. -
Undocumented
Declaration
Swift
public func updateAccessibilityLabelForSegmendControl()