TileLayoutTagHelper
Kendo UI TileLayout TagHelper TileLayoutTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-tilelayout")]
[RestrictChildren("containers", new string[] { "gap", "reorderable" })]
public class TileLayoutTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseTileLayoutTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-tilelayout name="tilelayout" columns="2" resizable="true" reorderable="true" columns-width="300px" rows-height="300px">
<containers>
<container body-template="Template One" col-span="1" row-span="1">
<container-header text="One" />
</container>
<container body-template="Template Two" col-span="1" row-span="1">
<container-header text="Two" />
</container>
<container body-template="Template Three" col-span="2" row-span="1">
<container-header text="Three" />
</container>
</containers>
</kendo-tilelayout>
Child Tags
Constructors
Initializes a new instance of the TileLayoutTagHelper class.
public TileLayoutTagHelper(IKendoHtmlGenerator generator)
Properties
Determines the width of the columns. Numeric values are treated as pixels.
public string ColumnsWidth { get; set; }
Determines the height of the layout. Numeric values are treated as pixels.
public string Height { get; set; }
A value indicating whether keyboard navigation will be enabled.
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the TileLayout is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the reorder event. Fired when a tile item is reordered.
public string OnReorder { get; set; }
The name of the JavaScript function that will handle the resize event. Fired when a tile item is resized.
public string OnResize { get; set; }
Determines whether the reordering functionality will be enabled.
[HtmlAttributeName("reorderable")]
public bool? ReorderableEnabled { get; set; }
Determines whether the resizing functionality will be enabled.
public bool? Resizable { get; set; }
Determines the height of the rows. Numeric values are treated as pixels.
public string RowsHeight { 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: