Function: sideModeFor()
sideModeFor(
rules,width):SideMode
Defined in: src/ui/layout/index.ts:65
The side mode for a layout width: the rule with the smallest width the layout is below, otherwise the rule without a width (docked if there's none).
Parameters
rules
readonly SideModeRule[]
width
number
Returns
Example
sideModeFor(parseSideModes("docked, rail@600, floating@400"), 500); // "rail"