Форк Rambox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
842 B

/**
* A simple class that adds a vertical separator bar between toolbar items (css class: 'x-toolbar-separator').
*
* @example
* Ext.create('Ext.panel.Panel', {
* title: 'Toolbar Separator Example',
* width: 300,
* height: 200,
* tbar : [
* 'Item 1',
* { xtype: 'tbseparator' },
* 'Item 2'
* ],
* renderTo: Ext.getBody()
* });
*/
Ext.define('Ext.toolbar.Separator', {
extend: 'Ext.toolbar.Item',
// Toolbar required here because we'll try to decorate it's alternateClassName
// with this class' alternate name
requires: ['Ext.toolbar.Toolbar'],
alias: 'widget.tbseparator',
alternateClassName: 'Ext.Toolbar.Separator',
baseCls: Ext.baseCSSPrefix + 'toolbar-separator',
ariaRole: 'separator'
});