ClassTelerikTileLayout
The class for the Telerik TileLayout component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikTileLayout : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikTileLayout
Implements:
Inherited Members
Constructors
TelerikTileLayout()
Declaration
public TelerikTileLayout()
Properties
ColumnSpacing
The overall padding and column spacing between columns, in pixels.
Declaration
[Parameter]
public string ColumnSpacing { get; set; }
Property Value
ColumnWidth
The column width in the grid layout. Takes CSS units and defaults to "1fr".
Declaration
[Parameter]
public string ColumnWidth { get; set; }
Property Value
Columns
The number of columns in the TileLayout.
Height
Defines the TileLayout height as a CSS value. If not set, the component will expand automatically to fit all rows.
Navigable
Defines if users can navigate the Component and execute actions via the keyboard. The default value is false
.
OnReorder
Event raised when an item is reordered.
Declaration
[Parameter]
public EventCallback<TileLayoutReorderEventArgs> OnReorder { get; set; }
Property Value
OnResize
Event raised when an item is resized.
Declaration
[Parameter]
public EventCallback<TileLayoutResizeEventArgs> OnResize { get; set; }
Property Value
Reorderable
Defines if reordering of tiles is enabled.
Resizable
Defines if resizing of tiles is enabled. If set, values for both RowHeight and ColumnWidth should also be provided.
RowHeight
The row height in the grid layout. Takes CSS units and defaults to "1fr".
Declaration
[Parameter]
public string RowHeight { get; set; }
Property Value
RowSpacing
The overall padding and row spacing between rows, in pixels.
Declaration
[Parameter]
public string RowSpacing { get; set; }
Property Value
TileLayoutItems
Defines the container tag for the TileLayout items.
Declaration
[Parameter]
public RenderFragment TileLayoutItems { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
GetState()
Gets the current state of the component (tiles order, size).
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides
SetState(TileLayoutState)
Sets a new state to the component (tiles order and size). Items from the state are applied sequantially to the tiles in the markup.
Declaration
public void SetState(TileLayoutState source)
Parameters
source