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

Kendo UI DiagramShapeEditableSettingsToolButton TagHelper DiagramShapeEditableSettingsToolButtonTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("button", ParentTag = "buttons", TagStructure = TagStructure.NormalOrSelfClosing)]
[SuppressTagRendering]
public class DiagramShapeEditableSettingsToolButtonTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDiagramShapeEditableSettingsToolButtonTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-diagram name="diagram">
    <shapes>
        <shape>
            <editable>
                <tools>
                    <tool>
                        <buttons>
                            <button click="onDiagramButtonClick"></button>
                        </buttons>
                    </tool>
                </tools>
            </editable>
        </shape>
    </shapes>
</kendo-diagram>

Constructors

Initializes a new instance of the DiagramShapeEditableSettingsToolButtonTagHelper class.

C#
public DiagramShapeEditableSettingsToolButtonTagHelper()

Properties

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

C#
public string Click { get; set; }

Specifies whether the button is initially enabled or disabled.

C#
public bool? Enable { get; set; }

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

C#
public string Group { get; set; }

Specifies the HTML attributes of a ButtonGroup's button.

C#
public IDictionary<string, object> HtmlAttributes { get; set; }

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

C#
public string Icon { get; set; }

Specifies the ID of the button.

C#
public string Id { get; set; }

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

C#
public string ImageUrl { get; set; }

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

C#
public bool? Selected { get; set; }

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

C#
public string ShowIcon { get; set; }

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

C#
public string ShowText { get; set; }

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

C#
public string SpriteCssClass { get; set; }

Specifies the text of the menu button.

C#
public string Text { get; set; }

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

C#
public bool? Togglable { get; set; }

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

C#
public string Toggle { get; set; }

Specifies the url of the button to navigate to.

C#
public string Url { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>