Class ToolBarBuilder<T>
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class ToolBarBuilder<T>
where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
ToolBarBuilder(ToolbarSettings)
Initializes a new instance of the ToolBarBuilder<T> class.
Declaration
public ToolBarBuilder(ToolbarSettings tools)
Parameters
Type | Name | Description |
---|---|---|
ToolbarSettings | tools | It displays the list of toolbarSettings option. |
Methods
CustomToolbarItems(List<Object>)
It sets a value that indicates whether to add custom toolbar items within the toolbar to perform any action in the grid
Declaration
public ToolBarBuilder<T> CustomToolbarItems(List<object> customItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Object> | customItems | It accepts the list of customized toolbar Items |
Returns
Type | Description |
---|---|
ToolBarBuilder<T> | ToolBarBuilder |
ShowToolbar()
It sets a value that indicates whether to enable toolbar in the grid.
Declaration
public ToolBarBuilder<T> ShowToolbar()
Returns
Type | Description |
---|---|
ToolBarBuilder<T> | ToolBarBuilder |
ShowToolbar(Boolean)
It sets a value that indicates whether to enable toolbar in the grid.
Declaration
public ToolBarBuilder<T> ShowToolbar(bool allowToolbar)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowToolbar | It accepts the boolean value and enables or disables toolbar items |
Returns
Type | Description |
---|---|
ToolBarBuilder<T> |
ToolbarItems(Action<ToolBarItemsBuilder<T>>)
Gets or sets a value that indicates whether to add the default editing actions as a toolbar items
Declaration
public ToolBarBuilder<T> ToolbarItems(Action<ToolBarItemsBuilder<T>> defaultItems)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ToolBarItemsBuilder<T>> | defaultItems | It accepts the list of default toolbar Items through lambda expression |
Returns
Type | Description |
---|---|
ToolBarBuilder<T> | ToolBarBuilder |
ToolbarItems(List<ToolBarItems>)
It sets a value that indicates whether to add the default editing actions as a toolbar items
Declaration
public ToolBarBuilder<T> ToolbarItems(List<ToolBarItems> defaultItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<ToolBarItems> | defaultItems | It accepts the list of default toolbar Items |
Returns
Type | Description |
---|---|
ToolBarBuilder<T> | ToolBarBuilder |