diff --git a/dev/pages/Dashboard.tsx b/dev/pages/Dashboard.tsx index e2bd274..e733935 100644 --- a/dev/pages/Dashboard.tsx +++ b/dev/pages/Dashboard.tsx @@ -6,6 +6,10 @@ import { import { DashboardWidget } from '../../packages/react-components-pro/src/DashboardWidget.js'; import './dashboard-styles.css'; +window.Vaadin ||= {}; +window.Vaadin.featureFlags ||= {}; +window.Vaadin.featureFlags.dashboardComponent = true; + type TestItem = DashboardItem & { title?: string; content?: string; diff --git a/dev/pages/DashboardLayout.tsx b/dev/pages/DashboardLayout.tsx index a6fc1fd..66a9ba5 100644 --- a/dev/pages/DashboardLayout.tsx +++ b/dev/pages/DashboardLayout.tsx @@ -4,6 +4,10 @@ import { DashboardSection } from '../../packages/react-components-pro/src/Dashbo import type { CSSProperties } from 'react'; import './dashboard-styles.css'; +window.Vaadin ||= {}; +window.Vaadin.featureFlags ||= {}; +window.Vaadin.featureFlags.dashboardComponent = true; + const colspan2 = { '--vaadin-dashboard-item-colspan': '2', } as CSSProperties;