A simple gallery of demos for Ignite UI Dock Manager. The main app lists projects under projects/
, and each demo can also run standalone.
- Node.js (LTS recommended)
- npm
install dev dependencies
npm install
Run the dev server
npm run dev
This starts the main samples browser that discovers demos in projects/
and serves them via the app shell.
Example: run the stream-manager demo
cd projects/stream-manager
npm install
npm run dev
-
Create a project folder
- Add a new directory:
projects/<project-id>
- Include a minimal Vite app (
index.html
,src/
,package.json
). - Use the folder name as the project id (must match the
id
you register below).
- Add a new directory:
-
Register your project in
src/project-config.ts
so it appears in the main app navigation.export const projects: ProjectConfig[] = [ { id: 'my-project', name: 'My Project', icon: 'smanager', } ];
- id: used for router navigation and the
<iframe>
source. - name: label used in the navigation drawer.
- icon: navigation icon. If omitted, a default icon is used.
You have two options for icons:
this icon is colored by the navigation-drawer component
- Add the icon in
src/icons/icons.ts
and register it insrc/data/icon-registry.ts
. - Then set
icon: '<icon-name>'
in your project entry.
-
Add your SVG string to
src/assets/icons.ts
:export const MY_LOGO = '<svg>...</svg>';
-
Import and use it in
src/project-config.ts
:import { MY_LOGO } from '../assets/icons'; // adjust path as needed export const projects: ProjectConfig[] = [ { id: 'my-project', name: 'My Project', icon: MY_LOGO, } ];
- id: used for router navigation and the
-
Add a minimal Vite config in your demo folder (so standalone runs work correctly):
// vite.config.ts import { defineConfig } from 'vite'; export default defineConfig({ base: './', });