Edit this page

Button Tag Helper

The Button tag helper helps you configure the Kendo UI Button widget in ASP.NET Core applications.

Basic Usage

The following example demonstrates how to define the Button by using the Button tag helper.

Example
    <kendo-button name="button1">Click here!</kendo-button>

Configuration

The Button tag helper configuration options are passed as attributes of the tag.

Example

        @(Html.Kendo().Button()
            .Name("imageButton")
            .HtmlAttributes(new { type = "button" })
            .ImageUrl(Url.Content("/shared/icons/sports/snowboarding.png"))
            .Content("Image icon"))

        <kendo-button name="button1" type="button"
            image-url="/shared/icons/sports/snowboarding.png">Image icon</kendo-button>

See Also