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