Directory

← Back

SplitButton

Button containing a primary button and a popup opener button.

Author

Contributors

Rating

SplitButton is a Vaadin component that contains a primary button and a button that opens a popup. The popup can contain any Vaadin component or component container similarly than in PopupButton.

SplitButton has a dependency on PopupButton 1.2.1 that is included in the add-on package. If you use Maven the dependency is resolved automatically.

Sample code

SplitButton splitButton = new SplitButton("New Document");

// To use SplitButton with Chameleon theme, this style name must be added to the component
splitButton.addStyleName(SplitButton.STYLE_CHAMELEON);

splitButton.setIcon(new ThemeResource(
		"../runo/icons/16/document-add.png"));

splitButton.setComponent(createSplitButtonPopupContent());

splitButton.addClickListener(new SplitButtonClickListener() {
	public void splitButtonClick(SplitButtonClickEvent event) {
		getMainWindow().showNotification("Button clicked!");
	}
});

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Fixed sizing issues

Released
2011-10-07
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.0+
Browser
Internet Explorer
Internet Explorer
Firefox
Opera
Safari
Google Chrome
Internet Explorer
iOS Browser
Android Browser

SplitButton - Vaadin Add-on Directory

Button containing a primary button and a popup opener button. SplitButton - Vaadin Add-on Directory
SplitButton is a Vaadin component that contains a primary button and a button that opens a popup. The popup can contain any Vaadin component or component container similarly than in PopupButton. SplitButton has a dependency on PopupButton 1.2.1 that is included in the add-on package. If you use Maven the dependency is resolved automatically.
Online