1681-engine / react / splitModeFor
Function: splitModeFor() ​
ts
function splitModeFor(
width,
touch,
stackBelow?
): "side" | "stack";Defined in: src/react/placement.ts:95
Side by side, or one pane at a time: only a touch screen narrower than stackBelow stacks.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
width | number | undefined |
touch | boolean | undefined |
stackBelow | number | SPLIT_STACK_BELOW |
Returns ​
"side" | "stack"