SplitMenuButton
A Button split into two parts. The left part acts like a regular Button, the right part acts like a MenuButton, which display items in a PopupMenu when clicked.
Theme DSL
"split_menu_button" {
child( ".arrow_button" ) { // A Button
child(".graphic") {
image( image : Image )
image( images : NamedImages, imageName : String )
tint( tint : Color )
}
}
}
SplitMenuButton inherits all features of ButtonBase.
".arrow_button" also is a Button, which also inherits all features of ButtonBase.
Properties
Functions
Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.
Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.
Add an event handler which is performed after the button is clicked, but before the popup menu is built.