StackLayoutTagHelper
Kendo UI StackLayout TagHelper StackLayoutTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-stacklayout")]
[RestrictChildren("container", new string[] { })]
[OutputElementHint("div")]
public class StackLayoutTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseStackLayoutTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-stacklayout name="stacklayout"
width="100%"
height="100%"
orientation="Horizontal">
<container>
<div style="background-color: aqua;">
Aqua colored stack item
</div>
</container>
<container>
<div style="background-color: cornflowerblue;">
Cornflowerblue colored stack item
</div>
</container>
<container>
<div style="background-color: blue;">
Blue colored stack item
</div>
</container>
</kendo-stacklayout>
Child Tags
Constructors
Initializes a new instance of the StackLayoutTagHelper class.
public StackLayoutTagHelper(IKendoHtmlGenerator generator)
Properties
Defines the height of the stack container. Accepts css unit value (ex: 800px).
public string Height { get; set; }
Defines the horizontal align of the items in the stack. Default value is Stretch.
public HorizontalAlign HorizontalAlign { get; set; }
Defines the orientation of the items in the stack. Default value is Horizontal.
public StackLayoutOrientation Orientation { get; set; }
Defines the spacing between items in the stack. Accepts css unit value (ex: 10px).
public string Spacing { get; set; }
Defines the vertical align of the items in the stack. Default value is Stretch.
public VerticalAlign VerticalAlign { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: