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