slak-listview
A unidirectional virtual-dom list view. Renders a list of items to hyperscript.
List items are passed a event emitter. Listeners can wait for events and take whatever action is needed (e.g. rerender the list, play a sound, start a program, etc...)
Import
//Import the module.//var ListView = ;
Construct
//The itemToTree function converts javascript "item" objects users provide to hyperscript trees// i.e. { type: 'mydata', ... } -> h('div', [myDataComponents, ...])//Constructs an empty ListView with no name, no message and add/remove buttonsvar view = ;var elementsView = ListView;
Render
//Renders elementsViewvar tree = ListView;