mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 03:25:45 +00:00
Added docs on the new search
option for List's
This commit is contained in:
parent
7df11051e6
commit
11ba4dad59
@ -545,6 +545,7 @@ A scrollable list which can display selectable items.
|
|||||||
- **keys** - use predefined keys for navigating the list.
|
- **keys** - use predefined keys for navigating the list.
|
||||||
- **vi** - use vi keys with the `keys` option.
|
- **vi** - use vi keys with the `keys` option.
|
||||||
- **items** - an array of strings which become the list's items.
|
- **items** - an array of strings which become the list's items.
|
||||||
|
- **search** - a function that is called when `vi` mode is enabled and the key `/` is pressed. This function accepts a callback function which should be called with the search string. The search string is then used to jump to an item that is found in `items`.
|
||||||
|
|
||||||
##### Properties:
|
##### Properties:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user