Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Tiles

The Tiles component provides a flexible responsive grid for dashboards and card-like widgets that users can rearrange. Use it as the layout host for dashboards that can change, including config-driven dashboards where the app lazy-loads widget components, shows skeletons, and saves the user-defined order.

Key Features:
  • Drag-and-drop: Reorder dashboard tiles with ngsTileHandle.
  • Responsive spans: Configure tile width and height for different breakpoints (sm, md, lg, xl).
  • Config-driven dashboards: Render lazy widget components and skeletons inside tiles when the dashboard can be customized.
  • Persistence hooks: Use orderChanged and layoutChanged to save the updated dashboard layout.

Tiles

Selector: ngs-tiles

Exported as: ngsTiles

PropTypeDefault
items
The data array used to render tiles. Required for reordering logic to work correctly.
any[][]
columns
Total number of columns in the grid.
number12
gap
Gap between tiles.
number | string24
EventDescription
orderChangeEmitted when the visual order of tiles changes during dragging.
orderChangedEmitted when the dragging finishes and the new order is finalized.
layoutChangedEmitted when the layout is recalculated.

Tile

Selector: ngs-tile

Exported as: ngsTile

PropTypeDefault
width*
Number of columns the tile should span.
number-
height*
Number of rows the tile should span.
number-
width.sm
Column span for sm breakpoint.
numberundefined
width.md
Column span for md breakpoint.
numberundefined
width.lg
Column span for lg breakpoint.
numberundefined
width.xl
Column span for xl breakpoint.
numberundefined
height.sm
Row span for sm breakpoint.
numberundefined
height.md
Row span for md breakpoint.
numberundefined
height.lg
Row span for lg breakpoint.
numberundefined
height.xl
Row span for xl breakpoint.
numberundefined