Add CanvasHeader along with sub components CanvasHeaderNav, SearchBar, SettingsButton

This commit is contained in:
Daniel S. Hansen
2025-07-11 15:58:38 -07:00
parent 12090cb391
commit eab46d424e
8 changed files with 116 additions and 24 deletions
+6 -1
View File
@@ -1,8 +1,13 @@
// This component defines a generic Widget that can be dynamically resized and
// dragged inside the canvas
// Content not included, must be populated using custom charts plots and notifications
import { useState } from 'react';
import GridLayout from 'react-grid-layout';
export default function Widget() {
// Define widgets initial position and size
// Define widgets initial position and size
// TODO Add dynamic adding/deleting of widgets via options button
const [layout, setLayout] = useState([
{ i: 'myWidget1', x: 0, y: 0, w: 3, h: 3, minH: 3, static: false },
{ i: 'myWidget2', x: 3, y: 0, w: 3, h: 3, minH: 3, static: false },