more notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-02-10 18:09:08 +03:00
parent 676e3c6440
commit 836a37d5bf

View File

@ -88,6 +88,7 @@ var collectItems = function(context, items){
// //
// XXX // XXX
// XXX can't use Object.assign(..) here as it will not copy props...
var Items = module.items = function(){} var Items = module.items = function(){}
@ -105,7 +106,7 @@ Items.last = function(){
// Focus last created item... // Focus last created item...
Items.focus = function(){ Items.focus = function(){
this.last.current = true } this.last().current = true }
@ -163,9 +164,6 @@ Items.Selected = function(value){}
Items.Editable = function(value){} Items.Editable = function(value){}
Items.ConfirmAction = function(value){} Items.ConfirmAction = function(value){}
// groups...
Items.Group = function(items){}
// lists... // lists...
Items.List = function(values){} Items.List = function(values){}
Items.EditableList = function(values){} Items.EditableList = function(values){}
@ -289,7 +287,9 @@ var BaseBrowserPrototype = {
// Renderers... // Renderers...
// //
// .renderList(items, options) // .renderList(items, options)
// .renderNested(header, sublist, item, options) // // XXX unify signature with other renderers -- replace options
// // with context as it already contains .options...
// .renderNested(header, sublist, contex, item, options)
// .renderItem(item, i, options) // .renderItem(item, i, options)
// .renderGroup(items, options) // .renderGroup(items, options)
// //