Clear Up
SharpKit Reference

Separator Class

Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will add one of these by using "-" in your call to add() or in your items config rather than creating one directly.

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

Namespace: Ext.menu

Fields

Name Description
separatorCls The CSS class used by the separator item to show the incised line. Defaults to: "x-menu-item-separator"
© Copyright 2005-2011 SharpKit. All rights reserved.