Skip to main content

Split button

Development

Examples

PreviewAngularReactVueJavaScript

With icon only

PreviewAngularReactVueJavaScript

API (ix-split-button)

Properties

Name
Description and specifications
closeBehavior
Since 2.3.0
Controls if the dropdown will be closed in response to a click event depending on the position of the event relative to the dropdown.
Attribute:
close-behavior
Type:
"both" | "inside" | "outside" | boolean
Default:
'both'
disabled
Disabled
Attribute:
disabled
Type:
boolean
Default:
false
ghost
Button invisible
Attribute:
ghost
Type:
boolean
Default:
false
icon
Button icon
Attribute:
icon
Type:
string
Default:
''
label
Button label
Attribute:
label
Type:
string | undefined
outline
Button outline variant
Attribute:
outline
Type:
boolean
Default:
false
placement
Placement of the dropdown
Attribute:
placement
Type:
"bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start"
Default:
'bottom-start'
splitIcon
Icon of the button on the right
Attribute:
split-icon
Type:
string
Default:
'context-menu'
variant
Color variant of button
Attribute:
variant
Type:
"danger" | "primary" | "secondary"
Default:
'primary'

Events

Name
Description and specifications
buttonClick
Button clicked
Detail:
MouseEvent

API (ix-split-button-item)

Properties

Name
Description and specifications
icon
Dropdown icon
Attribute:
icon
Type:
string | undefined
label
Dropdown label
Attribute:
label
Type:
string | undefined

Events

Name
Description and specifications
itemClick
Dropdown item clicked
Detail:
MouseEvent