X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.CycleButton.html?ds=sidebyside diff --git a/docs/output/Ext.CycleButton.html b/docs/output/Ext.CycleButton.html index 070b6976..e9559812 100644 --- a/docs/output/Ext.CycleButton.html +++ b/docs/output/Ext.CycleButton.html @@ -1,367 +1,286 @@ -
-
- Properties - Methods - Events - Config Options - Direct Link -
-
-
Observable
-  Component
-    Button
-      SplitButton
-        CycleButton
-

Class Ext.CycleButton

- - - - - -
Package:Ext
Defined In:CycleButton.js
Class:CycleButton
Extends:SplitButton
-
- * -A specialized SplitButton that contains a menu of Ext.menu.CheckItem elements. The button automatically -cycles through each menu item on click, raising the button's change event (or calling the button's -changeHandler function, if supplied) for the active menu item. Clicking on the arrow section of the -button displays the dropdown menu just like a normal SplitButton. Example usage: -
var btn = new Ext.CycleButton({
-    showText: true,
-    prependText: 'View as ',
+
Observable
  Component
    BoxComponent
      Button
        SplitButton
          CycleButton

Class Ext.CycleButton

Package:Ext
Defined In:CycleButton.js
Class:CycleButton
Extends:SplitButton
A specialized SplitButton that contains a menu of Ext.menu.CheckItem elements. The button automatically +cycles through each menu item on click, raising the button's change event (or calling the button's +changeHandler function, if supplied) for the active menu item. Clicking on the arrow section of the +button displays the dropdown menu just like a normal SplitButton. Example usage: +
var btn = new Ext.CycleButton({
+    showText: true,
+    prependText: 'View as ',
+    items: [{
+        text:'text only',
+        iconCls:'view-text',
+        checked:true
+    },{
+        text:'HTML',
+        iconCls:'view-html'
+    }],
+    changeHandler:function(btn, item){
+        Ext.Msg.alert('Change View', item.text);
+    }
+});

Config Options

Config OptionsDefined By
 allowDepress : Boolean
False to not allow a pressed Button to be depressed (defaults to undefined). Only valid when enableToggle is true.
Button
 allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
 arrowHandler : Function
A function called when the arrow button is clicked (can be used instead of click event)
SplitButton
 arrowTooltip : String
The title attribute of the arrow
SplitButton

Public Events

EventDefined By
\ No newline at end of file