diff options
Diffstat (limited to 'sw-ui-kt/src/main')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/blueprintjsHelpers.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw-ui-kt/src/main/kotlin/blueprintjsHelpers.kt b/sw-ui-kt/src/main/kotlin/blueprintjsHelpers.kt index 22489c86..928653c5 100644 --- a/sw-ui-kt/src/main/kotlin/blueprintjsHelpers.kt +++ b/sw-ui-kt/src/main/kotlin/blueprintjsHelpers.kt @@ -36,7 +36,7 @@ fun RBuilder.bpButton( icon: IconName? = null, rightIcon: IconName? = null, intent: Intent = Intent.NONE, - onClick: ((event: MouseEvent) -> Unit)?, + onClick: ((event: MouseEvent) -> Unit)? = {}, block: RHandler<IButtonProps> = {} ): ReactElement = child(Button::class) { attrs { @@ -53,8 +53,14 @@ fun RBuilder.bpButton( } fun RBuilder.bpButtonGroup( + large: Boolean = false, + minimal: Boolean = false, block: RHandler<IButtonGroupProps> = {} ): ReactElement = child(ButtonGroup::class) { + attrs { + this.large = large + this.minimal = minimal + } block() } |