struct ListBehavior
Swift
Constructors
init(selectsOnHover: Bool, clicksToActivate: Int, takesFocus: Bool)
Creates a behaviour. Every parameter matches the property of the same name.
Sources/LavaUI/List.swift:305
Properties
var clicksToActivate: Int
Clicks on a row that call onActivate: 2 for a double click, 1 for a
row that opens on a click.
Sources/LavaUI/List.swift:299
static let results: ListBehavior
Results under a search field: the pointer selects, a click opens, and the field keeps the keyboard.
Sources/LavaUI/List.swift:319
var selectsOnHover: Bool
Selection follows the pointer, as in a launcher's results.
Sources/LavaUI/List.swift:296
static let standard: ListBehavior
A sidebar or a file list: a click selects, a double click or Enter opens, and the arrows are the list's once it has been pressed.
Sources/LavaUI/List.swift:313
var takesFocus: Bool
Whether a press gives the list the keyboard. Off where something else — a search field — holds it and moves the selection itself.
Sources/LavaUI/List.swift:302