X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..e9397f91ede62d446aed37d23256e8938fc4c335:/docs/output/Ext.CycleButton.html?ds=sidebyside diff --git a/docs/output/Ext.CycleButton.html b/docs/output/Ext.CycleButton.html index a4639f70..a470925f 100644 --- a/docs/output/Ext.CycleButton.html +++ b/docs/output/Ext.CycleButton.html @@ -1,29 +1,34 @@ -
Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Button
        SplitButton
          CycleButton

Class Ext.CycleButton

Package:Ext
Defined In:CycleButton.js
Class:CycleButton
Extends:SplitButton
xtype:cycle
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