Button

Basic example

View.Button("Button")

Basic example with styling

View.Button(
    horizontalOptions = style.Position,
    verticalOptions = style.Position,
    backgroundColor = style.ButtonColor,
    padding = style.Padding,
    text = "Button"
)

See also:

More examples

Buttons are created using View.Button. The command of a button will normally dispatch a messsage. For example:

View.Button(
    text = "Deposit",
    command = (fun () -> dispatch (Add 10.0))
)