diff --git a/docs/index.html b/docs/index.html index 3a866df..5c13abe 100644 --- a/docs/index.html +++ b/docs/index.html @@ -548,6 +548,54 @@
The split button component
+ +The SplitButton
component emits three events, "click" when the button itself is clicked, "show" and "hide" for when the contents display is toggled. This component is abstract, it is not bound to a Menu
or ColorPicker
etc, one should inherit from this component to display content.
var button = new ui.SplitButton('Action');
+
+button.on('click', function(){
+ ui.notify('Button clicked');
+});
+
+button.on('show', function(){
+ ui.notify('Show dropdown');
+});
+
+button.on('hide', function(){
+ ui.notify('Hide dropdown');
+});
+
+button.el.appendTo('.example-split-button');
+
+