syncfusion-angular-dashboard-layout
Create responsive grid-based dashboards with draggable, resizable panels. Use this skill when implementing Syncfusion Angular Dashboard Layout, creating customizable dashboard layouts, adding dynamic panels, enabling drag-drop panel repositioning, resizing panels, saving/restoring dashboard states, making dashboards responsive, or styling dashboard components with CSS customization.
What this skill does
# Implementing Syncfusion Angular Dashboard Layout The **Dashboard Layout** component is a powerful grid-structured layout control that helps you create responsive, interactive dashboards with dynamic panels. Panels can be dragged, resized, added, removed, and their state can be persisted. This skill guides you through all aspects of implementing, configuring, and customizing dashboard layouts in Angular. ## When to Use This Skill - Creating customizable dashboard layouts with multiple panels - Implementing drag-and-drop panel repositioning - Enabling panel resizing in multiple directions - Dynamically adding or removing dashboard panels - Making dashboards responsive across device sizes - Saving and restoring dashboard layout configurations - Styling dashboard components with CSS customization - Integrating Syncfusion charts, grids, or other components as panel content ## Component Overview The Dashboard Layout component provides: - **Grid-based layout system** with configurable columns and cell dimensions - **Drag-and-drop** support for reordering panels with visual feedback - **Resizing** in multiple directions (east, west, north, south, etc.) - **Floating panels** that automatically fill empty spaces - **Responsive behavior** with custom media query breakpoints - **State persistence** through serialize/deserialize methods - **Dynamic panel management** with add, remove, and move operations - **Event-driven architecture** for tracking user interactions ## Documentation and Navigation Guide ### Getting Started ๐ **Read:** [references/getting-started.md](references/getting-started.md) - Angular CLI setup and project initialization - Installing Dashboard Layout package (Ivy and ngcc variants) - CSS imports and theme configuration - Two panel definition approaches (HTML attributes vs property binding) - Basic component rendering and first dashboard creation - Cell spacing and layout initialization ### Adding and Removing Panels ๐ **Read:** [references/adding-removing-panels.md](references/adding-removing-panels.md) - Dynamic panel management with addPanel() method - Removing individual panels with removePanel(id) - Bulk removal with removeAll() method - Panel configuration properties for dynamic generation - Event handling and callbacks for lifecycle management ### Setting Panel Headers ๐ **Read:** [references/panel-headers.md](references/panel-headers.md) - Configuring panel headers with header property - Adding titles, labels, and HTML content to headers - Styling headers with CSS customization - Embedding Syncfusion components in panel headers - Header interaction and user experience patterns ### Dragging and Dropping Panels ๐ **Read:** [references/dragging-and-dropping.md](references/dragging-and-dropping.md) - Default drag-drop behavior and panel collision handling - Drag events: dragStart, drag, dragStop - Customizing drag handles with draggableHandle property - Programmatic panel movement with movePanel(id, row, col) - Disabling drag functionality with allowDragging - Touch support and user interaction patterns ### Moving Panels Programmatically ๐ **Read:** [references/moving-panels.md](references/moving-panels.md) - Using movePanel(id, row, col) to reposition panels - Moving panels without user interaction - Tracking panel movements with change events - Swapping panel positions programmatically - Panel rearrangement patterns and use cases ### Resizing and Floating Panels ๐ **Read:** [references/resizing-and-floating.md](references/resizing-and-floating.md) - Enabling panel resizing with allowResizing - Resize handles in different directions (e-south-east, e-east, e-west, e-north, e-south) - Resize events: resizeStart, resize, resizeStop - Programmatic resizing with resizePanel(id, sizeX, sizeY) - Min and max size constraints (minSizeX, minSizeY, maxSizeX, maxSizeY) - Floating behavior and automatic panel repositioning - Disabling floating for fixed grid layouts ### Saving and Restoring State ๐ **Read:** [references/save-restore-state.md](references/save-restore-state.md) - Serializing dashboard layout with serialize() - Saving layout state to localStorage, sessionStorage, or backend - Restoring layouts from persisted configuration - Implementing layout templates and presets - State persistence patterns and best practices ### Responsive and Adaptive Design ๐ **Read:** [references/responsive-and-adaptive.md](references/responsive-and-adaptive.md) - Built-in responsive behavior and auto-adaptation - Customizing responsive breakpoints with mediaQuery - Stacked layout on mobile devices (vertical columns) - Cell aspect ratio configuration with cellAspectRatio - Testing responsive layouts at different resolutions - Parent element sizing (percentage vs static dimensions) ### Configuring Cell Spacing ๐ **Read:** [references/cell-spacing-configuration.md](references/cell-spacing-configuration.md) - Setting [horizontal, vertical] spacing with cellSpacing property - Adjusting spacing for compact or spacious layouts - Dynamic spacing adjustment for responsive designs - Asymmetric spacing patterns for visual hierarchy - Practical examples: compact dashboards, executive layouts ### Graphical Representation and Grid Lines ๐ **Read:** [references/grid-lines-and-visualization.md](references/grid-lines-and-visualization.md) - Visualizing grid structure with showGridLines property - Understanding grid cells, rows, columns, and spacing - Design-time grid visualization for layout planning - Debugging panel positioning and sizing - Best practices for grid line usage ### Right-to-Left Language Support ๐ **Read:** [references/rtl-support.md](references/rtl-support.md) - Enabling RTL rendering with enableRtl property - Supporting Arabic, Hebrew, Farsi, and Urdu languages - Dynamic RTL toggling for language switching - HTML dir attribute integration - CSS logical properties for RTL-aware styling - RTL considerations with drag-drop interactions ### Styling and Customization ๐ **Read:** [references/styling-and-customization.md](references/styling-and-customization.md) - CSS selectors for customizing panels, headers, and content - Panel header and content styling (.e-panel-header, .e-panel-content) - Resize handle customization (.e-resize) - Dashboard background styling - Panel positioning and sizing with row, col, sizeX, sizeY properties - Min/max size constraints and grid structure - Integrating Syncfusion components (Charts, Grids, Gauges) as panel content - SystemJS configuration for legacy Angular setups **For detailed examples and code samples, see:** - [getting-started.md](references/getting-started.md) - Quick start and basic setup examples - [Common patterns and implementation examples in specific reference files](references/) ## API Reference ### Component Properties (14 total) #### Layout Configuration | Property | Type | Default | Description | |---|---|---|---| | `columns` | number | 5 | Number of columns in the grid layout. Panels are positioned within this column-based grid. | | `cellSpacing` | number[] | [10, 10] | Spacing between panels: [horizontal, vertical] in pixels. Creates visual separation and padding around panels. | | `cellAspectRatio` | number | Auto (1:1) | Width/height ratio of cells. Example: 100/50 creates cells that are twice as wide as tall. | | `mediaQuery` | string | 'max-width: 600px' | CSS media query breakpoint for responsive stacked layout. Panels stack vertically below this breakpoint. | | `showGridLines` | boolean | false | When true, visualizes grid cells and structure for design-time debugging and layout planning. | #### Interaction Features | Property | Type | Default | Description | |---|---|---|---| | `allowDragging` | boolean | true | Enables/disables panel drag-drop functionality. When true, users can reorder panels by dragging. | | `allowResizing` | boolean | false | Enables/disables panel resizing. When true, resize handles appear on panel edges. | | `allowFloating` | boolean | true |
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4โv5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.