gridstack_will_it_fit
Check if a widget fits at specified coordinates in a dashboard grid layout. Verify placement without overlaps before adding widgets to ensure proper positioning.
Instructions
Check if a widget will fit at specified position
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget | Yes |
Input Schema (JSON Schema)
{
"properties": {
"widget": {
"properties": {
"h": {
"description": "Height",
"type": "number"
},
"id": {
"description": "Widget ID to ignore in collision check",
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"w": {
"description": "Width",
"type": "number"
},
"x": {
"description": "X position",
"type": "number"
},
"y": {
"description": "Y position",
"type": "number"
}
},
"required": [
"x",
"y",
"w",
"h"
],
"type": "object"
}
},
"required": [
"widget"
],
"type": "object"
}