kvision / pl.treksoft.kvision.html / Button / <init>

<init>

(js) Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, separator: String? = null, labelFirst: Boolean = true, classes: Set<String> = setOf())

Parameters

text - button label

icon - button icon

style - button style

disabled - button state

separator - a separator between label and icon/image (defaults to space)

labelFirst - determines if the label is put before children elements (defaults to true)

classes - a set of CSS class names

Constructor