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

Defines the fluent API for configuring DiagramShapeEditableSettingsToolButton

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramShapeEditableSettingsToolButtonBuilder method.

C#
public DiagramShapeEditableSettingsToolButtonBuilder(DiagramShapeEditableSettingsToolButton<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeEditableSettingsToolButton<TShapeModel, TConnectionModel>

Properties

Container member.

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

Methods

Specifies the click event handler of the button. Applicable only for the children of a ButtonGroup.

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

The handler code wrapped in a text tag.

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the click event handler of the button. Applicable only for the children of a ButtonGroup.

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

The name of the JavaScript function that will be evaluated.

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies whether the button is initially enabled or disabled.

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

The value for Enable

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Assigns the button to a group. Applicable only for the children of a ButtonGroup that has togglable true.

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

The value for Group

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the HTML attributes of a ButtonGroup's button.

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

The value for HtmlAttributes

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the HTML attributes of a ButtonGroup's button.

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

The value for HtmlAttributes

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Sets icon for the menu button. The icon should be one of the existing in the Kendo UI theme sprite.

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

The value for Icon

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the ID of the button.

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

The value for Id

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

If set, the ToolBar will render an image with the specified URL in the button.

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

The value for ImageUrl

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies if the toggle button is initially selected. Applicable only for the children of a ButtonGroup that has togglable true.

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

The value for Selected

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies where the icon of the button will be displayed. Applicable only for the children of a ButtonGroup.

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

The value for ShowIcon

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies where the text of the menu button will be displayed. Applicable only for the buttons of a ButtonGroup.

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

The value for ShowText

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.

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

The value for SpriteCssClass

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the text of the menu button.

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

The value for Text

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies if the button is togglable, e.g. has a selected and unselected state. Applicable only for the children of a ButtonGroup.

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

The value for Togglable

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the toggle event handler of the button. Applicable only for the children of a ButtonGroup.

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

The handler code wrapped in a text tag.

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the toggle event handler of the button. Applicable only for the children of a ButtonGroup.

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

The name of the JavaScript function that will be evaluated.

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.

Specifies the url of the button to navigate to.

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

The value for Url

Returns:

DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeEditableSettingsToolButtonBuilder<TShapeModel, TConnectionModel> instance.