Add iot data and custom input card for floting cards
This commit is contained in:
@@ -59,9 +59,11 @@ const ProgressBarWidget = ({
|
||||
id,
|
||||
title,
|
||||
data,
|
||||
type
|
||||
}: {
|
||||
id: string;
|
||||
title: string;
|
||||
type: string;
|
||||
data: any;
|
||||
}) => {
|
||||
const { setDraggedAsset } = useWidgetStore((state) => state);
|
||||
@@ -72,7 +74,7 @@ const ProgressBarWidget = ({
|
||||
draggable
|
||||
onDragStart={() => {
|
||||
setDraggedAsset({
|
||||
type: "progress",
|
||||
type: type,
|
||||
id,
|
||||
title,
|
||||
panel: "top",
|
||||
@@ -99,7 +101,7 @@ const ProgressBarWidget = ({
|
||||
</div>
|
||||
);
|
||||
};
|
||||
console.log(chartTypes,"chartTypes");
|
||||
console.log(chartTypes, "chartTypes");
|
||||
|
||||
const Widgets2D = () => {
|
||||
return (
|
||||
@@ -124,6 +126,7 @@ const Widgets2D = () => {
|
||||
{ key: "units", value: 1000, description: "Initial stock" },
|
||||
],
|
||||
}}
|
||||
type={"progress 1"}
|
||||
/>
|
||||
<ProgressBarWidget
|
||||
id="widget-8"
|
||||
@@ -134,6 +137,7 @@ const Widgets2D = () => {
|
||||
{ key: "units", value: 500, description: "Additional stock" },
|
||||
],
|
||||
}}
|
||||
type={"progress 2"}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user