Interface for a class Toolbar
The event will be fired before the control is rendered on a page.
The event will be fired on clicking the Toolbar elements.
EmitType<Event>
The event will be fired when the control is rendered.
EmitType<Event>
The event will be fired when the control gets destroyed.
boolean
When this property is set to true, it allows the keyboard interaction in toolbar.
string
Sets the CSS classes to root element of the Tab that helps to customize component styles.
boolean
Enable or disable the popup collision.
boolean
Defines whether to allow the cross-scripting site or not.
boolean
Enable or disable persisting component’s state between page reloads.
boolean
Enable or disable rendering component in right to left direction.
string
| number
Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
An array of items that is used to configure Toolbar commands.
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Specifies the Toolbar display mode when Toolbar content exceeds the viewing area. The possible values for this property as follows
number
Specifies the scrolling distance in scroller.
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { ToolbarComponent, ItemsDirective, ItemDirective } from '@syncfusion/ej2-react-navigations';
function App = () => {
const divMargin = { margin: '25px 0' };
return (
<div className='control-pane'>
<div className='control-section tbar-control-section'>
<div className='control toolbar-sample tbar-sample' style={divMargin}>
<ToolbarComponent id="defaultTab" width="600px" scrollStep={50}>
<ItemsDirective>
<ItemDirective prefixIcon='e-cut-icon tb-icons' tooltipText='Cut' />
<ItemDirective prefixIcon='e-copy-icon tb-icons' tooltipText='Copy' />
<ItemDirective prefixIcon='e-paste-icon tb-icons' tooltipText='Paste' />
</ItemsDirective>
</ToolbarComponent>
</div>
</div>
</div>
);
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
string
| number
Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.