Defines the fluent API for configuring DiagramEditableSettingsTool
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
DiagramEditableSettingsToolBuilder method.
public DiagramEditableSettingsToolBuilder(DiagramEditableSettingsTool<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramEditableSettingsTool<TShapeModel, TConnectionModel>
Container member.
protected DiagramEditableSettingsTool<TShapeModel, TConnectionModel> Container { get; }
Methods
Specifies the buttons of ButtonGroup.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Buttons(Action<DiagramEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel>> configurator)
The DiagramEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel> for the buttons setting.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> .
Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies whether the control is initially enabled or disabled. Default value is "true".
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Enable(bool value)
The value for Enable
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Assigns the button to a group. Applicable only for buttons with togglable set to true.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Group(string value)
The value for Group
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the HTML attributes of a button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the HTML attributes of a button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(object value)
The value for HtmlAttributes
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Icon(string value)
The value for Icon
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the ID of the button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Id(string value)
The value for Id
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
If set, the ToolBar will render an image with the specified URL in the button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ImageUrl(string value)
The value for ImageUrl
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the menu buttons of a SplitButton.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> MenuButtons(Action<DiagramEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel>> configurator)
The DiagramEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel> for the menubuttons setting.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> .
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 for Name
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies how the button behaves when the ToolBar is resized. Possible values are "always", "never" or "auto" (default).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Overflow(string value)
The value for Overflow
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate(string value)
The value for OverflowTemplate
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the command overflow popup. Applicable only for 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>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateHandler(string templateHandler)
The handler that returs the template for OverflowTemplate
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateId(string templateId)
The ID of the template element for OverflowTemplate
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateView(IHtmlContent templateView)
The view that contains the template for OverflowTemplate
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies whether the button is primary. Primary buttons receive different styling.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Primary(bool value)
The value for Primary
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies if the toggle button is initially selected. Applicable only for buttons with togglable set to true.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Selected(bool value)
The value for Selected
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies where the button icon will be displayed. Possible values are "toolbar", "overflow" or "both" (default).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowIcon(string value)
The value for ShowIcon
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies where the text will be displayed. Possible values are "toolbar", "overflow" or "both" (default).
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowText(string value)
The value for ShowText
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> SpriteCssClass(string value)
The value for SpriteCssClass
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
The step of the rotateClockwise and rotateAnticlockwise tools.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Step(double value)
The value for Step
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template(string value)
The value for Template
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
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>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateId(string templateId)
The ID of the template element for Template
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Sets the text of the button.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Text(string value)
The value for Text
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies if the button is togglable, e.g. has a selected and unselected state.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Togglable(bool value)
The value for Togglable
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable set to true.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable set to true.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(string handler)
The name of the JavaScript function that will be evaluated.
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the command type. Supported types are "button", "splitButton", "buttonGroup", "separator".
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Type(string value)
The value for Type
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.
Specifies the url to navigate to.
public DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Url(string value)
The value for Url
Returns:DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.