FUIButtonFormCell
@IBDesignable
open class FUIButtonFormCell : NibDesignableFUIBaseTableViewCell
Simple UITableViewCell
subclass, containing a UIButton
instance which can be
aligned to 3 FUIHorizontalAlignment
positions: .left
, .center
, .right
.
Color settings:
Setting tintColor for button for a state using setTintColor(_:for:) api. Currently disabled
, normal
and selected
are supported.
cell.setTintColor(UIColor.red, for: .normal)
## Usage:
Implement the action handler for the UIButton
instance, to respond to UIControl
events.
## Theming Supported style classes
fdlFUIButtonFormCell
fdlFUIButtonFormCell_button
-
The value type is
UIControlEvents
.Declaration
Swift
public typealias ValueType = UIControlEvents
-
Implementation of change handler. Is invoked when button is tapped.
Declaration
Swift
public var onChangeHandler: ((UIControlEvents) -> Void)?
-
Indicates if the button is enabled.
Declaration
Swift
public var isEditable: Bool { get set }
-
isEnabled
andisEditable
are in sync.Declaration
Swift
override public var isEnabled: Bool { get set }
-
Reuse identifier
Declaration
Swift
open class var reuseIdentifier: String { get }
-
The alignment for this button.
Declaration
Swift
public var alignment: FUIHorizontalAlignment { get set }