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