Single-cell gap
Leaves one empty cell at row 1, column 2.
JSON 5 lines
{
"type": "spacer",
"id": "gap-1",
"position": [1, 2]
}
An empty gap
When to use it. An invisible layout element that reserves grid cells. Use spacers to create gaps or push other controls into specific positions.
spacersquare.dashed
3 examples, each one a control you can paste into a layout.
Leaves one empty cell at row 1, column 2.
{
"type": "spacer",
"id": "gap-1",
"position": [1, 2]
}
Reserves a block two rows tall and two columns wide so neighbours sit apart.
{
"type": "spacer",
"id": "gap-wide",
"position": [0, 0],
"span": [2, 2]
}Fills the first columns of a row so the next control starts further along.
{
"type": "spacer",
"id": "left-pad",
"position": [3, 0],
"span": [1, 2]
}carterkit serves a small hub on your computer and pushes one example to CAR-TER on your iPhone or iPad. Pair once with the code it prints.
Install the Python kit.
pip install carterkitShow “Single-cell gap” on your phone.
carterkit demo spacer --example 'Single-cell gap'Swap in any example name from this page, or leave --example off for the first one.
Inherits all Shadow opacity. The spacer has no control-specific fields.
| Field | Type | Default | Description |
|---|---|---|---|
span |
array | [1, 1] |
Number of grid cells to reserve [rows, cols] |
Generated from ControlDocs/spacer.md. Something unclear or missing? Tell me.