Class Toolbar
Inheritance
Namespace: Syncfusion.EJ2.Navigations
Assembly: Syncfusion.EJ2.dll
Syntax
public class Toolbar : EJTagHelper
Constructors
Toolbar()
Declaration
public Toolbar()
Properties
AllowKeyboard
When this property is set to true, it allows the keyboard interaction in toolbar.
Declaration
public bool AllowKeyboard { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
BeforeCreate
The event will be fired before the control is rendered on a page.
Declaration
public string BeforeCreate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Clicked
The event will be fired on clicking the Toolbar elements.
Declaration
public string Clicked { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Created
The event will be fired when the control is rendered.
Declaration
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Sets the CSS classes to root element of the Tab that helps to customize component styles.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Destroyed
The event will be fired when the control gets destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
EnableCollision
Enable or disable the popup collision.
Declaration
public bool EnableCollision { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnableHtmlSanitizer
Defines whether to allow the cross-scripting site or not.
Declaration
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Height
Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
Declaration
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "auto" |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Object |
Items
An array of items that is used to configure Toolbar commands.
Declaration
public List<ToolbarItem> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Navigations.ToolbarItem> | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
OverflowMode
Specifies the Toolbar display mode when Toolbar content exceeds the viewing area. The possible values for this property as follows
- Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
- Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the popup.
- MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
- Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons. If the popup content overflows the height of the page, the rest of the elements will be hidden.
Declaration
public OverflowMode OverflowMode { get; set; }
Property Value
Type | Description |
---|---|
OverflowMode | The default value is OverflowMode.Scrollable |
ScrollStep
Specifies the scrolling distance in scroller. The possible values for this property as follows Scrollable - All the elements are displayed in a single line with horizontal scrolling enabled. Popup - Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the popup. MultiRow - Displays the overflow toolbar items as an in-line of a toolbar. Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons. If the popup content overflows the height of the page, the rest of the elements will be hidden.
Declaration
public double ScrollStep { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is Double.NaN |
Width
Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "auto" |