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

Defines the fluent API for configuring PopoverAction

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PopoverActionBuilder

Inheritance: objectPopoverActionBuilder

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

Constructors

PopoverActionBuilder method.

C#
public PopoverActionBuilder(PopoverAction container)
Parameters:containerPopoverAction

Properties

Gets the settings being configured.

C#
protected PopoverAction Container { get; }

Methods

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

C#
public PopoverActionBuilder Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PopoverActionBuilder

Returns the current PopoverActionBuilder instance.

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

C#
public PopoverActionBuilder Click(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

PopoverActionBuilder

Returns the current PopoverActionBuilder instance.

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.

C#
public PopoverActionBuilder Icon(Action<PopoverActionIconSettingsBuilder> configurator)
Parameters:configuratorAction<PopoverActionIconSettingsBuilder>

The PopoverActionIconSettingsBuilder for the icon setting.

Returns:

PopoverActionBuilder

Returns the current instance of PopoverActionBuilder .

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.

C#
public PopoverActionBuilder Icon(string icon)
Parameters:iconstring

The value for Icon

Returns:

PopoverActionBuilder

Returns the current instance of PopoverActionBuilder .

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Ok").Icon("user"))
)

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

C#
public PopoverActionBuilder IconClass(string value)
Parameters:valuestring

The value for IconClass

Returns:

PopoverActionBuilder

Returns the current PopoverActionBuilder instance.

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Ok").IconClass("refresh-icon"))
)

The text displayed in the action button

C#
public PopoverActionBuilder Text(string value)
Parameters:valuestring

The value for Text

Returns:

PopoverActionBuilder

Returns the current PopoverActionBuilder instance.

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Add"))
)