PopoverActionBuilder

Methods

Click(System.String)

A handler function to be called when the action button is clicked

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

RETURNS

Returns the current PopoverActionBuilder instance.

Click(System.Func)

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.

RETURNS

Returns the current PopoverActionBuilder instance.

Icon(System.String)

The name of the icon to display inside the button.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

Parameters

icon - System.String

The value for Icon

RETURNS

Returns the current instance of PopoverActionBuilder .

Example

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

Icon(System.Action)

The name of the icon to display inside the button.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

Parameters

configurator - System.Action<PopoverActionIconSettingsBuilder>

The configurator for the icon setting.

RETURNS

Returns the current instance of PopoverActionBuilder .

IconClass(System.String)

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

Parameters

value - System.String

The value for IconClass

RETURNS

Returns the current PopoverActionBuilder instance.

Example

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

Text(System.String)

The text displayed in the action button

Parameters

value - System.String

The value for Text

RETURNS

Returns the current PopoverActionBuilder instance.

Example

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