New to Kendo UI for AngularStart a free 30-day trial

Definition

Package:@progress/kendo-angular-layout

Selector:kendo-tilelayout

Syntax:

html
<kendo-tilelayout [columns]="3" [gap]="10">
  <kendo-tilelayout-item>Content 1</kendo-tilelayout-item>
  <kendo-tilelayout-item>Content 2</kendo-tilelayout-item>
</kendo-tilelayout>

Inputs

Controls how the auto-placement algorithm works, specifying exactly how auto-placed items are flowed in the TileLayout (see example).

For further reference, check the grid-auto-flow CSS article.

Default:

'column'

columns

number

Specifies the number of columns (see example).

Default:

1

columnWidth

string | number

Sets the width of the columns. Use numeric values for pixels or string values for other CSS units (see example).

Default:

'1fr'

Sets the spacing between layout items in pixels. Use an object with rows and columns properties to set different horizontal and vertical spacing. Use a single number to apply the same spacing to both directions.

Default:

{ rows: 16, columns: 16 }

boolean

Enables or disables keyboard navigation.

Default:

true

Enables or disables item reordering (see example).

Default:

false

resizable

boolean

Enables or disables item resizing (see example).

Default:

false

rowHeight

string | number

Sets the height of the rows. Use numeric values for pixels or string values for other CSS units (see example).

Default:

'1fr'

Fields

Contains a query list of the TileLayoutItemComponent instances that are used in the TileLayout. This allows you to access the items programmatically and manipulate their properties or listen to their events.

Events

Fires when item reordering is completed (see example). You can prevent this event to cancel the reorder operation.

Fires when item resizing is completed (see example). You can prevent this event to cancel the resize operation.