ui/client/features/pages-editor/domain/TrailFold
Cockpit client (features), next. Source: ui/client/features/pages-editor/domain/TrailFold.ts.
Variables#
MAX_VISIBLE_STEPS#
constMAX_VISIBLE_STEPS:6=6
Defined in: ui/client/features/pages-editor/domain/TrailFold.ts:6
Past this many steps the middle of the trail folds into an "..." menu.
Functions#
foldTrail()#
foldTrail(
trail,max?):TrailItem[]
Defined in: ui/client/features/pages-editor/domain/TrailFold.ts:10
What to draw. Up to max steps every step shows; beyond that the first step, the last step and the
current step (with a neighbour either side) show, and each gap becomes one fold.
Parameters#
trail
max?
number = MAX_VISIBLE_STEPS