Skip to content

Horizontal Menu View

A horizontal menu view displays a list of items side by side in a single row, similar to a lightbar. Items are selected with the cursor keys, Page Up, Page Down, Home and End, or by a hotKey.

A horizontal menu lays its items out along one row, so width sets the total width available to the whole list (default 15) and itemSpacing separates items horizontally rather than vertically.

In addition to the common menu view properties, a horizontal menu view accepts:

PropertyDescription
focusItemFramesFormats played in turn on the focused item, with focusItemFrameInterval, focusItemFrameDurations and focusItemFrameMode. Each item’s slot is as wide as the widest of its frames, and a frame is centred in it; frames are cut at the terminal’s right edge. See Animated Focused Item

Example

Configuration fragment (expand to view)
HM2: {
focus: true
width: 60 // set as desired
submit: true
argName: navSelect
items: [
"prev", "next", "details", "toggle queue", "rate", "help", "quit"
]
}