gridstack_make_widget
Convert existing DOM elements into interactive grid widgets for building dynamic dashboard layouts with customizable positioning and sizing options.
Instructions
Convert an existing DOM element into a grid widget
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| el | Yes | Element selector to convert | |
| options | No | Widget options |
Input Schema (JSON Schema)
{
"properties": {
"el": {
"description": "Element selector to convert",
"type": "string"
},
"options": {
"description": "Widget options",
"properties": {
"autoPosition": {
"type": "boolean"
},
"h": {
"type": "number"
},
"locked": {
"type": "boolean"
},
"maxH": {
"type": "number"
},
"maxW": {
"type": "number"
},
"minH": {
"type": "number"
},
"minW": {
"type": "number"
},
"noMove": {
"type": "boolean"
},
"noResize": {
"type": "boolean"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
}
},
"required": [
"el"
],
"type": "object"
}