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