Button
open class Button : ControlView
A basic control with a label around an outlined area that the user can interact
by clicking with the mouse, raising ControlView.mouseClicked
events.
-
Gets the view that forms the label of this button.
Declaration
Swift
public let label: Label
-
Gets or sets the title label. Equivalent to
label.text
.Declaration
Swift
open var title: String { get set }
-
The insets of the label outline relative to the bounds of this button.
Declaration
Swift
open var contentInset: UIEdgeInsets { get set }
-
The background color for the button.
Background color is automatically handled by a button, and if customization is required,
setBackgroundColor(_:forState:)
should be used to configure the colors for each state.Declaration
Swift
open override var backColor: Color { get set }
-
Initializes a standard button control with a given initial title label.
Declaration
Swift
public init(title: String)
-
Declaration
Swift
open override func onStateChanged(_ event: ValueChangedEventArgs<ControlViewState>)
-
Declaration
Swift
open override func setupHierarchy()
-
Declaration
Swift
open override func setupConstraints()
-
Declaration
Swift
open override func viewForFirstBaseline() -> View?