OnsButton

constructor(content: String? = null, rich: Boolean = false, align: Align? = null, icon: String? = null, buttonType: OnsButtonType? = null, large: Boolean? = null, ripple: Boolean? = null, disabled: Boolean? = null, className: String? = null, init: OnsButton.() -> Unit? = null)

Creates a button component.

Parameters

content

the content of the button.

rich

whether content can contain HTML code

align

text align

icon

an icon placed on the button

buttonType

a type of the button

large

whether the button is large

ripple

specify if the button will have a ripple effect

disabled

specify if the button should be disabled

className

CSS class names

init

an initializer extension function