Function: matchesState()
matchesState(
condition,state):boolean
Defined in: src/ui/layout/index.ts:109
Whether a layout state meets a condition: space-separated terms that must all hold, each narrow, ui-hidden,
input:pen, input:touch, input:mouse, left:<mode> or right:<mode>, optionally negated with !.
Parameters
condition
string
state
Returns
boolean
Example
matchesState("narrow !input:pen", state);