X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.CycleButton.html diff --git a/docs/output/Ext.CycleButton.html b/docs/output/Ext.CycleButton.html index cb03c801..0fdc8e1a 100644 --- a/docs/output/Ext.CycleButton.html +++ b/docs/output/Ext.CycleButton.html @@ -1,29 +1,29 @@ -
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