PopoverActionBuilder

Methods

Click(System.Func)

Defines a handler function to be called when the action button is clicked.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Actions(action => action.Add().Text("Ok").Click(@<text>
                        function(e) { console.log("Action clicked"); }
                    </text>))
            )
             

Click(System.String)

Defines a handler function to be called when the action button is clicked.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Click event.

Example

Razor
 
            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Actions(action => action.Add().Text("Ok").Click("onActionClick"))
            )
             

Icon(System.String)

Defines the name of the icon to display inside the action button.

Parameters

value - System.String

The value that configures the icon.

Example

Razor
 
            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Actions(action => action.Add().Text("Ok").Icon("user"))
            )
             

IconClass(System.String)

Defines the CSS class that will be added to the icon element inside the action button.

Parameters

value - System.String

The value that configures the CSS class.

Example

Razor
 
            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Actions(action => action.Add().Text("Ok").IconClass("refresh-icon"))
            )
             

Text(System.String)

Defines the text displayed in the action button.

Parameters

value - System.String

The value that configures the text.

Example

Razor
 
            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Actions(action => action.Add().Text("Add"))
            )