Defines the fluent API for configuring TreeListColumnCommand
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class TreeListColumnCommandBuilder<T> where T : class
Inheritance: objectTreeListColumnCommandBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the TreeListColumnCommandBuilder<T> class.
public TreeListColumnCommandBuilder(TreeListColumnCommand<T> container)
The TreeList column command container.
Properties
Gets the container of the TreeList column command
protected TreeListColumnCommand<T> Container { get; }
Methods
The CSS class that is applied to the command button.
public TreeListColumnCommandBuilder<T> ClassName(string value)
The value for ClassName
Returns:TreeListColumnCommandBuilder<T>
Returns the current TreeListColumnCommandBuilder<T> instance.
The JavaScript function that is executed when the user clicks the command button. The function receives a jQuery event as an argument. The function context that is available through the this keyword will be set to the TreeList instance.
public TreeListColumnCommandBuilder<T> Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:TreeListColumnCommandBuilder<T>
Returns the current TreeListColumnCommandBuilder<T> instance.
The JavaScript function that is executed when the user clicks the command button. The function receives a jQuery event as an argument. The function context that is available through the this keyword will be set to the TreeList instance.
public TreeListColumnCommandBuilder<T> Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:TreeListColumnCommandBuilder<T>
Returns the current TreeListColumnCommandBuilder<T> instance.
Specifies the icon's name of the command 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 TreeListColumnCommandBuilder<T> Icon(Action<TreeListColumnCommandIconSettingsBuilder<T>> configurator)
The TreeListColumnCommandIconSettingsBuilder<T> for the icon setting.
Returns:TreeListColumnCommandBuilder<T>
Returns the current instance of TreeListColumnCommandBuilder<T> .
Specifies the icon's name of the command 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 TreeListColumnCommandBuilder<T> Icon(string icon)
The icon.
Returns:TreeListColumnCommandBuilder<T>
Returns the current instance of TreeListColumnCommandBuilder<T> .
The CSS class that is applied to the icon span of the command button.
public TreeListColumnCommandBuilder<T> ImageClass(string value)
The value for ImageClass
Returns:TreeListColumnCommandBuilder<T>
Returns the current TreeListColumnCommandBuilder<T> instance.
The name of the command. Commands can be built-in ("edit", "createChild" and "destroy") or custom. When set to a custom value, the name is rendered as a data-command attribute. For more information, refer to the columns.command section.
public TreeListColumnCommandBuilder<T> Name(string value)
The value for Name
Returns:TreeListColumnCommandBuilder<T>
Returns the current TreeListColumnCommandBuilder<T> instance.
The text that is displayed by the command button. If not set, the name option is used as the button text. To have an icon button with no text, you can set the text property to an empty string.
public TreeListColumnCommandBuilder<T> Text(string value)
The value for Text
Returns:TreeListColumnCommandBuilder<T>
Returns the current TreeListColumnCommandBuilder<T> instance.