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

Defines the fluent API for configuring the ToggleButtonBadgeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ToggleButtonBadgeSettingsBuilder

Inheritance: objectToggleButtonBadgeSettingsBuilder

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

Constructors

C#
public ToggleButtonBadgeSettingsBuilder(ToggleButtonBadgeSettings settings)
Parameters:settingsToggleButtonBadgeSettings

The ToggleButtonBadgeSettings

Methods

Sets the alignment of the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder Align(BadgeAlign value)
Parameters:valueBadgeAlign

The value that configures the align.

Returns:

ToggleButtonBadgeSettingsBuilder

Specifies whether or not to render additional cutout border around the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder CutoutBorder(bool value)
Parameters:valuebool

The value that configures the cutoutborder.

Returns:

ToggleButtonBadgeSettingsBuilder

Determines whether the textual content should be rendered as an HTML string or it should be encoded.

C#
public ToggleButtonBadgeSettingsBuilder Encoded(bool value)
Parameters:valuebool

The value that configures the encoded.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets the fill mode of the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder Fill(BadgeFill value)
Parameters:valueBadgeFill

The value that configures the fill.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets the position of the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder Position(BadgePosition value)
Parameters:valueBadgePosition

The value that configures the position.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets the shape of the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder Shape(BadgeShape value)
Parameters:valueBadgeShape

The value that configures the shape.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets the size of the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value that configures the size.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets the text for the badge widget that will be displayed in the component.

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

The value that configures the text.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets the theme color of the badge widget that will be displayed in the component.

C#
public ToggleButtonBadgeSettingsBuilder ThemeColor(BadgeColor value)
Parameters:valueBadgeColor

The value that configures the themecolor.

Returns:

ToggleButtonBadgeSettingsBuilder

Sets whether the badge widget will be visible or not in the component.

C#
public ToggleButtonBadgeSettingsBuilder Visible(bool value)
Parameters:valuebool

The value that configures the visible.

Returns:

ToggleButtonBadgeSettingsBuilder