FUIButtonFormCell

@IBDesignable
open class FUIButtonFormCell : FUIInlineValidationTableViewCell

Simple UITableViewCell subclass, containing a UIButton instance which can be aligned to 3 FUIHorizontalAlignment positions: .left, .center, .right.

FUIButtonFormCell

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 and isEditable are in sync.

    Declaration

    Swift

    override public var isEnabled: Bool { get set }
  • Reuse identifier

    Declaration

    Swift

    open class var reuseIdentifier: String { get }
  • Main @IBOutlet in the view. May be positioned in cell, using alignment property. Assign target action, using UIButton addTarget(_:_:_:) interface.

    Declaration

    Swift

    @IBOutlet
    public private(set) weak var button: FUIButton! { get }
  • The alignment for this button.

    Declaration

    Swift

    public var alignment: FUIHorizontalAlignment { get set }