MCPInstall

syncfusion-javascript-dashboard-layout

Build responsive dashboard layouts with drag-and-drop panels, dynamic resizing, and state persistence. Guide users to implement DashboardLayout control with panel management, dragging, resizing, floating, and persistence features. Includes event handling, dynamic panel addition/removal, and comprehensive API reference.

Installs
55
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/javascript-ui-controls-skills --skill syncfusion-javascript-dashboard-layout
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-javascript-dashboard-layout automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing Syncfusion TypeScript Dashboard Layout

The DashboardLayout is a powerful grid-based layout component that enables creating interactive dashboard interfaces with draggable, resizable panels. It supports dynamic panel management, floating layouts, state persistence, and responsive behavior through media queries. Users can rearrange panels, resize them in multiple directions, and save/restore layout configurations.

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and package dependencies
  • Setting up with HTML attributes or script
  • Basic panel configuration (rows, columns, cell spacing)
  • Running your first dashboard application

Panel Configuration

📄 Read: references/panel-configuration.md

  • Defining panel properties (sizeX, sizeY, row, col)
  • Panel headers and content templates
  • CSS classes and styling
  • Programmatic panel sizing and positioning

Dragging and Moving Panels

📄 Read: references/dragging-and-moving.md

  • Enabling/disabling drag functionality
  • Customizing drag handles (draggableHandle)
  • Panel collision detection and reordering
  • Drag events (dragStart, drag, dragStop)

Moving Panels Programmatically

📄 Read: references/moving-panels.md

  • Using movePanel() method for programmatic positioning
  • Swapping panels and layout reorganization
  • Priority-based and column-based arrangements
  • Restoring saved layout configurations

Resizing Panels

📄 Read: references/resizing-panels.md

  • Enabling/disabling resize functionality
  • Configurable resize handles (e-south-east, e-east, e-west, e-north, e-south)
  • Resize events and event arguments
  • Programmatic resizing with resizePanel() method

Panel Manipulation

📄 Read: references/panel-manipulation.md

  • Dynamically adding panels with addPanel()
  • Removing panels with removePanel()
  • Removing all panels with removeAll()
  • Serializing panel layout with serialize()

Floating and Responsive Layouts

📄 Read: references/floating-and-responsive.md

  • Enabling floating to fill empty spaces automatically
  • Media query for responsive stacking behavior
  • Cell aspect ratio configuration
  • Adaptive layouts for different screen sizes

Persistence and State Management

📄 Read: references/persistence-and-state.md

  • Saving layout configuration with serialize()
  • Restoring layouts from saved state
  • State persistence with enablePersistence
  • localStorage integration for browser sessions

Events Handling

📄 Read: references/events-handling.md

  • Lifecycle events (created, destroyed)
  • Drag events with DragStartArgs, DraggedEventArgs, DragStopArgs
  • Resize events with ResizeArgs
  • Change event for panel position updates

Complete API Reference

📄 Read: references/api-reference.md

  • All DashboardLayout properties and their usage
  • All Panel properties and configuration options
  • Complete event signatures with arguments
  • All methods with parameters and examples
  • Type definitions and enumerations

Quick Start

import { DashboardLayout } from '@syncfusion/ej2-layouts';

// Initialize Dashboard Layout with 5 columns
let dashboard: DashboardLayout = new DashboardLayout({
    cellSpacing: [10, 10],
    columns: 5,
    panels: [
        { 
            'id': 'Panel1',
            'sizeX': 2, 
            'sizeY': 2, 
            'row': 0, 
            'col': 0, 
            content: '<div class="content">Panel 1</div>' 
        },
        { 
            'id': 'Panel2',
            'sizeX': 3, 
            'sizeY': 2, 
            'row': 0, 
            'col': 2, 
            content: '<div class="content">Panel 2</div>' 
        }
    ]
});

// Render to container
dashboard.appendTo('#dashboard_layout');

Common Patterns

Pattern 1: Enable Full Interactivity

const dashboard = new DashboardLayout({
    allowDragging: true,      // Enable drag and reorder
    allowResizing: true,       // Enable resize
    allowFloating: true,       // Auto-fill empty spaces
    cellSpacing: [10, 10],
    columns: 6,
    panels: [
        { 'sizeX': 2, 'sizeY': 2, 'row': 0, 'col': 0, content: '<div>Widget 1</div>' },
        { 'sizeX': 2, 'sizeY': 2, 'row': 0, 'col': 2, content: '<div>Widget 2</div>' }
    ]
});
dashboard.appendTo('#dashboard');

Pattern 2: Handle Drag Events

const dashboard = new DashboardLayout({
    columns: 5,
    dragStart: (args) => console.log('Drag started on panel:', args.element),
    drag: (args) => console.log('Dragging panel...'),
    dragStop: (args) => {
        console.log('Drag completed. Modified panels:', args.panels);
    },
    panels: [...] // panel configuration
});
dashboard.appendTo('#dashboard');

Pattern 3: Save and Restore Layout

const dashboard = new DashboardLayout({
    columns: 5,
    panels: [...]
});
dashboard.appendTo('#dashboard');

// Save current layout
const savedLayout = dashboard.serialize();

// Later: Restore layout
dashboard.panels = savedLayout;

Pattern 4: Responsive Dashboard

const dashboard = new DashboardLayout({
    columns: 6,
    mediaQuery: '(max-width: 600px)',  // Stack panels below 600px
    enablePersistence: true,            // Remember user layout
    panels: [...]
});
dashboard.appendTo('#dashboard');

Key Concepts

Grid System

  • Panels are positioned on a grid using row, col, sizeX, and sizeY
  • columns defines the total grid columns available
  • cellSpacing controls horizontal and vertical spacing between panels

Panel Sizing

  • sizeX: Width in grid cells (e.g., sizeX: 2 means 2 columns wide)
  • sizeY: Height in grid cells
  • minSizeX/maxSizeX and minSizeY/maxSizeY: Constrain resize operations

Interaction

  • Dragging: Reorder panels when allowDragging = true
  • Resizing: Change panel size with handles (e-south-east, e-east, etc.)
  • Floating: Panels move up to fill empty cells when allowFloating = true

Events

  • dragStart/drag/dragStop: Monitor and control drag operations
  • resizeStart/resize/resizeStop: Monitor and control resize operations
  • change: Fired when panel positions update
  • created/destroyed: Lifecycle events

When to Use DashboardLayout

✅ Perfect for:

  • Analytics and reporting dashboards
  • Customizable widget layouts
  • Data monitoring interfaces
  • User-configurable UI layouts
  • Real-time data visualization hubs

❌ Not ideal for:

  • Static, fixed layouts
  • Simple page layouts (use CSS Grid or Flexbox)
  • Single-column layouts

Next Steps:

  1. Choose your use case from the navigation guide
  2. Read the relevant reference file
  3. Check the API reference for complete property/method documentation
  4. Review code examples for your specific scenario

For complete API documentation, see references/api-reference.md.

FAQ

What does the syncfusion-javascript-dashboard-layout skill do?

Build responsive dashboard layouts with drag-and-drop panels, dynamic resizing, and state persistence. Guide users to implement DashboardLayout control with panel management, dragging, resizing, floating, and persistence features. Includes event handling, dynamic panel addition/removal, and comprehensive API reference.

How do I install syncfusion-javascript-dashboard-layout?

Run npx skills add https://github.com/syncfusion/javascript-ui-controls-skills --skill syncfusion-javascript-dashboard-layout in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-javascript-dashboard-layout/ (personal) or .claude/skills/syncfusion-javascript-dashboard-layout/ (project).

Which AI agents can use syncfusion-javascript-dashboard-layout?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-javascript-dashboard-layout safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-javascript-dashboard-layout?

It is published by syncfusion in syncfusion/javascript-ui-controls-skills. It has 55 recorded installs.

More from syncfusion/javascript-ui-controls-skills

View all →

syncfusion-javascript-grid

syncfusion/javascript-ui-controls-skills

Implements Syncfusion JavaScript Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.

syncfusion-javascript-common

syncfusion/javascript-ui-controls-skills

Common utilities and features for Syncfusion JavaScript controls. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion JavaScript controls.

syncfusion-javascript-dropdowns

syncfusion/javascript-ui-controls-skills

Comprehensive guide for implementing Syncfusion TypeScript dropdown components including AutoComplete, ComboBox, Mention, Dropdownlist, Multiselect, ListBox, and MultiColumn ComboBox. Use this when building selection interfaces, data binding, filtering, cascading dropdowns, dual list transfer, custom templates, and accessible dropdown experiences.

syncfusion-javascript-tab

syncfusion/javascript-ui-controls-skills

This skill enables creating and customizing Syncfusion TypeScript Tab components, including tab navigation, tab headers, styling, responsive layouts, dynamic content loading, animations, and multi-panel organization.

syncfusion-javascript-license

syncfusion/javascript-ui-controls-skills

Open the skill to read its SKILL.md instructions.

syncfusion-javascript-popups

syncfusion/javascript-ui-controls-skills

Open the skill to read its SKILL.md instructions.

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs