Enums: Button
Control button behavior and grouping with strongly typed enums.
Button enums help you pick intent-driven behavior like submit actions and layout roles like addon groups or toolbars.
How it works
Use ButtonType on the <Button> component to define HTML behavior, and use ButtonsRole on button groups to control layout.
Examples
ButtonType.Submitfor form submission buttons.ButtonType.Linkto render a button styled like a link.ButtonsRole.Toolbarfor toolbar-style button groups.
Reference
ButtonsRole
Buttons group behaviour.
ButtonsRole.AddonsDisplay buttons as addons.ButtonsRole.ToolbarDisplay buttons as toolbar buttons.
ButtonType
Defines the button type and behaviour.
ButtonType.ButtonThe button is a clickable button.ButtonType.SubmitThe button is a submit button (submits form-data).ButtonType.ResetThe button is a reset button (resets the form-data to its initial values).ButtonType.LinkThe button will be rendered as a link but will appear as a regular button.