New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DiagramShapeEditableSettingsTool

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DiagramShapeEditableSettingsToolBuilder method.

C#
public DiagramShapeEditableSettingsToolBuilder(DiagramShapeEditableSettingsTool<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeEditableSettingsTool<TShapeModel, TConnectionModel>

Properties

Container

DiagramShapeEditableSettingsTool<TShapeModel, TConnectionModel>

Container member.

C#
protected DiagramShapeEditableSettingsTool<TShapeModel, TConnectionModel> Container { get; }

Methods

Specifies the buttons of ButtonGroup.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Buttons(Action<DiagramShapeEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeEditableSettingsToolButtonFactory<TShapeModel, TConnectionModel>>

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Click(string handler)
Parameters:handlerstring

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".

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Enable(bool value)
Parameters:valuebool

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Group(string value)
Parameters:valuestring

The value for Group

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.

Specifies the HTML attributes of a button.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value for HtmlAttributes

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.

Specifies the HTML attributes of a button.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> HtmlAttributes(object value)
Parameters:valueobject

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Icon(string value)
Parameters:valuestring

The value for Icon

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.

Specifies the ID of the button.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Id(string value)
Parameters:valuestring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ImageUrl(string value)
Parameters:valuestring

The value for ImageUrl

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.

Specifies the menu buttons of a SplitButton.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> MenuButtons(Action<DiagramShapeEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeEditableSettingsToolMenuButtonFactory<TShapeModel, TConnectionModel>>

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Name(string value)
Parameters:valuestring

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).

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Overflow(string value)
Parameters:valuestring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate(string value)
Parameters:valuestring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateId(string templateId)
Parameters:templateIdstring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> OverflowTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Primary(bool value)
Parameters:valuebool

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Selected(bool value)
Parameters:valuebool

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).

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowIcon(string value)
Parameters:valuestring

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).

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> ShowText(string value)
Parameters:valuestring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> SpriteCssClass(string value)
Parameters:valuestring

The value for SpriteCssClass

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.

The step of the rotateClockwise and rotateAnticlockwise tools.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Step(double value)
Parameters:valuedouble

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template(string value)
Parameters:valuestring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateId(string templateId)
Parameters:templateIdstring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Text(string value)
Parameters:valuestring

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Togglable(bool value)
Parameters:valuebool

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Toggle(string handler)
Parameters:handlerstring

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".

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Type(string value)
Parameters:valuestring

The value for Type

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.

Specifies the url to navigate to.

C#
public DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> Url(string value)
Parameters:valuestring

The value for Url

Returns:

DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolBuilder<TShapeModel, TConnectionModel> instance.