Defines the fluent API for configuring TreeListToolbar
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class TreeListToolbarBuilder<T> where T : class
Inheritance: objectTreeListToolbarBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the TreeListToolbarBuilder<T> class.
public TreeListToolbarBuilder(TreeListToolbar<T> container)
The TreeListToolbarBuilder container.
Properties
Gets the container of the TreeListToolbarBuilder
protected TreeListToolbar<T> Container { get; }
Methods
The click handler of the toolbar command. Used for custom toolbar commands.
public TreeListToolbarBuilder<T> Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Specifies the icon's name that will be rendered inside the toolbar button. Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public TreeListToolbarBuilder<T> Icon(Action<TreeListToolbarIconSettingsBuilder<T>> configurator)
The TreeListToolbarIconSettingsBuilder<T> for the icon setting.
Returns:Returns the current instance of TreeListToolbarBuilder<T> .
Specifies the icon's name that will be rendered inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button which has a name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.
public TreeListToolbarBuilder<T> Icon(string value)
The value for Icon
Returns:A class name that will be rendered inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button which has a class name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.
public TreeListToolbarBuilder<T> ImageClass(string value)
The value for ImageClass
Returns:The name of the toolbar command. Can be either a built-in ("create", "excel", or "pdf") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.
public TreeListToolbarBuilder<T> Name(string value)
The value for Name
Returns:The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template
public TreeListToolbarBuilder<T> Template(string value)
The value for Template
Returns:The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template
public TreeListToolbarBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template
public TreeListToolbarBuilder<T> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template
public TreeListToolbarBuilder<T> TemplateId(string templateId)
The ID of the template element for Template
Returns:The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template
public TreeListToolbarBuilder<T> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:The text that is displayed by the command button. If not set, the TreeList will use the name` option as the button text instead.
public TreeListToolbarBuilder<T> Text(string value)
The value for Text
Returns: