Kendo UI SkeletonContainer TagHelper SkeletonContainerTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-skeletoncontainer")]
[RestrictChildren("grid", new string[] { "container-template" })]
public class SkeletonContainerTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseSkeletonContainerTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-skeletoncontainer name="skeleton" animation="SkeletonContainerAnimation.Pulse"></kendo-skeletoncontainer>
Child Tags
Constructors
Initializes a new instance of the SkeletonContainerTagHelper class.
public SkeletonContainerTagHelper(IKendoHtmlGenerator generator)
Properties
Determines whether the items will be animated
public SkeletonContainerAnimation? Animation { get; set; }
Determines the height of the component. Numeric values are treated as pixels.
public string Height { get; set; }
Defines a template that will be used to visualize the skeleton shapes. If both grid and template are defined the grid takes precedence.
public string Template { get; set; }
Defines a template that will be used to visualize the skeleton shapes. If both grid and template are defined the grid takes precedence. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
Defines a template that will be used to visualize the skeleton shapes. If both grid and template are defined the grid takes precedence. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Defines a template that will be used to visualize the skeleton shapes. If both grid and template are defined the grid takes precedence. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: