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

Defines the fluent API for configuring the Telerik UI for ASP.NET MVC SkeletonContainer.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SkeletonContainerBuilder : WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>, IHtmlString

Inheritance: objectWidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>SkeletonContainerBuilder

Implements: IHtmlString

Inherited Members WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ToComponent()WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.Name(string)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.Deferred(bool)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ModelMetadata(ModelMetadata)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.HtmlAttributes(object)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.AsModule(bool)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.Render()WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ToHtmlString()WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ToClientTemplate()WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.ToString()WidgetBuilderBase<SkeletonContainer, SkeletonContainerBuilder>.Componentobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the SkeletonContainer class.

C#
public SkeletonContainerBuilder(SkeletonContainer component)
Parameters:componentSkeletonContainer

The component.

Methods

Determines whether the items will be animated.

C#
public SkeletonContainerBuilder Animation(SkeletonContainerAnimation value)
Parameters:valueSkeletonContainerAnimation

The enum value that configures the animation.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.Animation(SkeletonContainerAnimation.Pulse)
)

Defines the settings for the CSS Grid that creates the skeleton shapes.

C#
public SkeletonContainerBuilder Grid(Action<SkeletonContainerGridSettingsBuilder> configurator)
Parameters:configuratorAction<SkeletonContainerGridSettingsBuilder>

The action that configures the grid settings.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.Grid(grid =&gt; {
grid.Rows(4);
grid.Columns(4);
grid.Items(i=&gt; {
i.Add().ColStart(1).ColSpan(1).RowStart(1).RowSpan(1).Shape(SkeletonContainerItemShape.Rectangle);
i.Add().ColStart(2).ColSpan(1).RowStart(1).RowSpan(1).Shape(SkeletonContainerItemShape.Rectangle);
});
})
)

Determines the height of the component. The numeric values are treated as pixels.

C#
public SkeletonContainerBuilder Height(string value)
Parameters:valuestring

The value that configures the height.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.Height("340px")
)

Defines a template that will be used to visualize the skeleton shapes. If both Grid() and Template() options are defined, the Grid takes precedence.

C#
public SkeletonContainerBuilder Template(string value)
Parameters:valuestring

The value that configures the template.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.Template("&lt;span&gt;Text&lt;/span&gt;&lt;span data-shape-text&gt;Text&lt;/span&gt;")
)

Defines a template that will be used to visualize the skeleton shapes. If both Grid() and Template() options are defined, the Grid takes precedence.

C#
public SkeletonContainerBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SkeletonContainerBuilder

Defines a template that will be used to visualize the skeleton shapes. If both Grid() and Template() options are defined, the Grid takes precedence.

C#
public SkeletonContainerBuilder TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.TemplateHandler("skeletonTemplate")
)
&lt;script&gt;
function skeletonTemplate() {
return `&lt;span&gt;Text&lt;/span&gt;&lt;span data-shape-text&gt;Text&lt;/span&gt;`;
}
&lt;/script&gt;

Defines a template that will be used to visualize the skeleton shapes. If both Grid() and Template() options are defined, the Grid takes precedence.

C#
public SkeletonContainerBuilder TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.TemplateId("skeletonShapeTemplate")
)
&lt;script id="skeletonShapeTemplate" type="text/x-kendo-template"&gt;
&lt;span&gt;Text&lt;/span&gt;&lt;span data-shape-text&gt;Text&lt;/span&gt;
&lt;/script&gt;

Defines a template that will be used to visualize the skeleton shapes. If both Grid() and Template() options are defined, the Grid takes precedence.

C#
public SkeletonContainerBuilder TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.TemplateView(Html.Partial("SkeletonTemplateView"))
)

Determines the width of the component. The numeric values are treated as pixels.

C#
public SkeletonContainerBuilder Width(string value)
Parameters:valuestring

The value that configures the width.

Returns:

SkeletonContainerBuilder

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("skeleton")
.Width("200px")
)