Defines the fluent API for configuring the DiagramEditableSettingsTool settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramEditableSettingsToolBuilder(DiagramEditableSettingsTool settings)
Methods
Specifies the buttons of ButtonGroup.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Buttons(Action<DiagramEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel>> configurator)
The action that configures the buttons.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the "click" event handler of the toolbar button. The option is applicable only for tools of type button and splitButton
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(Func<object, object> handler)
The value that configures the click action.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the "click" event handler of the toolbar button. The option is applicable only for tools of type button and splitButton
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(string handler)
The value that configures the click action.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies whether the toolbar button is initially enabled or disabled. The default value is "true".
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Enable(bool value)
The value that enables or disables the button.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Assigns a group to the toolbar button. The option is applicable only for buttons with option Togglable(true).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Group(string value)
The value that configures the group of the button.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the HTML attributes of the toolbar tool.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(IDictionary<string, object> value)
The value that configures the HTML attributes.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the HTML attributes of the toolbar tool.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(object value)
The value that configures the HTML attributes.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Sets an icon for the toolbar button. The icon must be one of the existing in the Kendo UI theme sprite.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Icon(string value)
The value that configures the icon for the toolbar button.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the ID of the toolbar button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Id(string value)
The value that configures the id.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Sets an image with a specified URL to be rendered in the toolbar button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ImageUrl(string value)
The value that configures the image URL.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the menu buttons of SplitButton or DropDownButton in the Toolbar of the connection.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> MenuButtons(Action<DiagramEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel>> configurator)
The action that configures the menubuttons.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Defines the name of the tool. The built-in tools are "edit", "createShape", "createConnection", "undo", "redo", "rotateClockwise" and "rotateAnticlockwise".
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Name(string value)
The value that configures the tool name.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies how the button behaves when the toolbar is resized. The supported values are: "always", "never" or "auto" (default). If a toolbar item contains a template and the Overflow is set to "always", the template will never be rendered. If the item contains an OverflowTemplate() and the Overflow is set to "never", the specified overflow template will never be rendered.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Overflow(string value)
The value that configures the overflow.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate(string value)
The value that configures the overflow template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the overflowtemplate.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateHandler(string value)
The value that configures the overflow template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateId(string value)
The value that configures the overflow template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the command overflow popup. The option is applicable only for toolbar items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateView(MvcHtmlString value)
The value that configures the overflow template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies whether the toolbar button is primary. The primary buttons have different styling.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Primary(bool value)
The value that configures the primary.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies if the toolbar toggle button must be initially selected. The option is applicable only for buttons with Togglable(true).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Selected(bool value)
The value that configures the selected option.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies where the toolbar button icon will be displayed. The supported values are: "toolbar", "overflow", and "both" (default).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowIcon(string value)
The value that configures the visibility of the button icon.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies where the toolbar button's text will be displayed. The supported values are: "toolbar", "overflow", and "both" (default).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowText(string value)
The value that configures the visibility of the button text.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Defines a CSS class (or multiple classes separated by spaces) that will be used for the button's icon.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> SpriteCssClass(string value)
The value that configures the CSS class.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
The step of the RotateClockwise and RotateAnticlockwise tools.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Step(double value)
The value that configures the step.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template(string value)
The value that configures the template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateHandler(string value)
The value that configures the template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateId(string value)
The value that configures the template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies what element will be added in the ToolBar wrapper. The items with template do not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Sets the text of the button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Text(string value)
The value that configures the text.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies whether the toolbar button must be togglable. For example, the button has a selected and unselected state.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Togglable(bool value)
The value that enables or disables the togglable option.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the Toggle event handler of the toolbar button. The option is applicable only for commands with options Type("button") and Togglable(true).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(Func<object, object> handler)
The value that configures the toggle action.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the Toggle event handler of the toolbar button. The option is applicable only for commands with options Type("button") and Togglable(true).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(string handler)
The value that configures the toggle action.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the type of the toolbar command. The supported types are: "button", "splitButton", "dropDownButton", "buttonGroup", "separator", "spacer".
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Type(string value)
The value that configures the type.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Specifies the URL of the toolbar command to navigate to.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Url(string value)
The value that configures the URL.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>