FUIRatingControlContentView
open class FUIRatingControlContentView : FUIFormCellContentView<FUIRatingControl, FUIControlState, FUIText>, FUITitleComponent, FUIPropertyFormCell, FUISubtitleComponent
This is the content view of the FUIRatingControlFormCell.
This view includes a FUITextKitView for title, a FUIRatingControl for the rating control,
and another FUITextKitView for subtitle. When subtitle is not nil, the title will not
be displayed.
-
The key name of the property.
Declaration
Swift
open var keyName: String? { get set } -
The type of value is
Intfor theFUIRatingControlFormCell.Declaration
Swift
public typealias ValueType = Int -
Indicates if the value of the cell could be changed or not.
The default is
true.Declaration
Swift
open var isEditable: Bool { get set } -
Implementation of change handler.
This is invoked when user changed the rating.
Declaration
Swift
open var onChangeHandler: ((Int) -> Void)? -
The value of the property represents the rating.
The value should be in the
ratingBoundsof theratingControlproperty.Declaration
Swift
public var value: Int { get set } -
The
FUIRatingControlin this view.Declaration
Swift
public var ratingControl: FUIRatingControl { get } -
Truncates the text of the key label if appropriate.
This property indicates if the key label text should be truncated or not when the width of the cell cannot hold the key name label and the ratings in the same line.
The default is true. It means the key name will be truncated in the end and the lable and the rating will be in a single horizontal line. Otherwise, the rating will be pushed to the line below the label.
Note that this property is ignored for device accessibility size larger than xxx large. In that case, the rating stars will always be in a separate line than the key label.
Declaration
Swift
public var truncatesKeyLabel: Bool