Clear Up
SharpKit Reference

CheckItem Class

A menu item that contains a togglable checkbox by default, but that can also be a part of a radio group.

  
    Ext.create('Ext.menu.Menu', {
            width: 100,
            height: 110,
            floating: false,  // usually you want this set to True (default)
            renderTo: Ext.getBody(),  // usually rendered by it's containing component
            items: [{
            xtype: 'menucheckitem',
            text: 'select all'
            },{
            xtype: 'menucheckitem',
            text: 'select specific'
            },{
            iconCls: 'add16',
            text: 'icon item'
            },{
            text: 'regular item'
            }]
            });
            

Namespace: Ext.menu

Fields

Name Description
checkChangeDisabled True to prevent the checked item from being toggled. Any submenu will still be accessible. Defaults to: false
checked True to render the menuitem initially checked. Defaults to: false
checkedCls The CSS class used by cls to show the checked state. Defaults to Ext.baseCSSPrefix + 'menu-item-checked'. Defaults to: "x-menu-item-checked"
checkHandler Alternative for the checkchange event. Gets called with the same parameters.
group Name of a radio group that the item belongs. Specifying this option will turn check item into a radio item. Note that the group name must be globally unique.
groupCls The CSS class applied to this item's icon image to denote being a part of a radio group. Defaults to Ext.baseCSSClass + 'menu-group-icon'. Any specified iconCls overrides this. Defaults to: "x-menu-group-icon"
scope Scope for the checkHandler callback.
uncheckedCls The CSS class used by cls to show the unchecked state. Defaults to Ext.baseCSSPrefix + 'menu-item-unchecked'. Defaults to: "x-menu-item-unchecked"

Methods

Name Description
disableCheckChange() Disables just the checkbox functionality of this menu Item. If this menu item has a submenu, that submenu will still be accessible
enableCheckChange() Reenables the checkbox functionality of this menu item after having been disabled by disableCheckChange
setChecked(bool, object) Sets the checked state of the item
© Copyright 2005-2011 SharpKit. All rights reserved.