set_cell_layout
Position a grid-mode cell by setting its x/y coordinates, width (max 12 columns), and height. Specify exact placement and sizing to control dashboard layout.
Instructions
Position a single cell in grid mode. x/y/w/h are integers in the react-grid-layout grid. The 12-column limit applies to WIDTH only (w ≤ 12); h is NOT in column units — the rendered cell box is h10 + (h-1)20 px (10px rows with 20px gaps BETWEEN rows; do NOT estimate with h30), and a fixed 44px cell header inside it leaves (h30 - 64)px of content. Chart cells pad the plot a further ~40px top and ~56px bottom (~86px when the zoom slider shows) inside that content area. EXAMPLES: markdown h:3 -> 310 + 220 = 70px box, 70 - 44 = 26px of text (the minimum strip); markdown h:5 -> 130px box, 86px of text (a comfortable title); chart h:10 -> 280px box, 236px content, ~140px of plot after padding (~110px with the zoom slider).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| cell_id | Yes | ||
| buffer_id | Yes |