up |
string
|
<optional>
|
"up"
|
the key to use for scrolling up in the menu |
down |
string
|
<optional>
|
"down"
|
the key to use for scrolling down in the menu |
confirmKey |
string
|
<optional>
|
"return"
|
the key that is listened for selecting options |
updateMode |
string
|
<optional>
|
"internal"
|
the mode to use for updating hovered elements, either internal (process inside the class), event (emit an event), function (run a custom function) |
modifier |
function
|
string
|
<optional>
|
"\x1b[7m"
|
the modifier for selected text. when mode is internal, this can for example be a color code. If it is set to function, this will be the function that gets called |
instance |
Container
|
<optional>
|
|
the container to use for modifying text if mode is set to internal. Else this is not necessary to be provided. |