TaskBoardPreviewPaneSettingsButtonBuilder
Methods
Name(System.String)
The name of the button.
Parameters
value - System.String
The value that configures the name.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().Name("edit")))
            )
             
Text(System.String)
The text of the button.
Parameters
value - System.String
The value that configures the text.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().Text("Details")))
            )
             
Icon(System.String)
The icon of the button.
Parameters
value - System.String
The value that configures the icon.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().Icon("gear")))
            )
             
SpriteCssClass(System.String)
The class name of the icon element.
Parameters
value - System.String
The value that configures the spritecssclass.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().SpriteCssClass("custom-class")))
            )
             
Command(System.String)
The command of the button.
Parameters
value - System.String
The value that configures the command.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().Command("MyCustomCommand")))
            )
             
Options(System.String)
The command options of the button.
Parameters
value - System.String
The value that configures the options.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().Options("options")))
            )
             
Primary(System.Boolean)
Toggles whether the color of the button to be primary or not.
Parameters
value - System.Boolean
The value that configures the primary.
Example
Razor
 
            @(Html.Kendo().TaskBoard()
                    .Name("taskBoard")
                    .PreviewPane(p => p.Buttons(b => b.Add().Primary(true)))
            )