Skip to content

Latest commit

 

History

History

nav

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

$mol_nav

Plugin which can navigate in list of items

Usage example

plugins /
	<= Nav $mol_nav
		keys_y <= component_list /
		current_y? <=> selected_component? 0

Properties

keys_y( keys? : $mol_view[] ) : $mol_view[]

Property keys_y is an array of items in which need navigate. By default navigation fires on up or down key press.

keys_x( keys? : $mol_view[] ) : $mol_view[]

Property keys_x is an array of items in which need navigate. By default navigation fires on left or right key press.

current_y( item? : any ) : any

Property current_y is an current item in keys_y.

current_x( item? : any ) : any

Property current_x is an current item in keys_x.

cycle( value? : boolean ) : boolean

Property cycle activate or disable cycle navigation.

Modifiers

If true, then check if the same key is pressed.

mod_ctrl() : boolean mod_shift() : boolean mod_alt() : boolean