preparing to start work on browse2.js...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-01-20 05:39:47 +03:00
parent 99e78ff65b
commit 993753db45

View File

@ -49,12 +49,12 @@ var Items.Item = function(value, make, options){
return make(value, make, options) return make(value, make, options)
} }
var Items.Action = function(value, make, options){ Items.Action = function(value, make, options){
options = Object.create(options || {}) options = Object.create(options || {})
options.cls = (options.cls || '') + ' action' options.cls = (options.cls || '') + ' action'
return this.Item(value, make, options) return this.Item(value, make, options)
} }
var Items.Heading = function(value, make, options){ Items.Heading = function(value, make, options){
options = Object.create(options || {}) options = Object.create(options || {})
options.cls = (options.cls || '') + ' heading' options.cls = (options.cls || '') + ' heading'
var attrs = options.doc ? {doc: options.doc} : {} var attrs = options.doc ? {doc: options.doc} : {}
@ -62,12 +62,12 @@ var Items.Heading = function(value, make, options){
options.attrs = attrs options.attrs = attrs
return this.Item(value, make, options) return this.Item(value, make, options)
} }
var Items.Empty = function(value){} Items.Empty = function(value){}
var Items.Separator = function(value){} Items.Separator = function(value){}
var Items.Spinner = function(value){} Items.Spinner = function(value){}
var Items.Selected = function(value){} Items.Selected = function(value){}
var Items.Editable = function(value){} Items.Editable = function(value){}
var Items.ConfirmAction = function(value){} Items.ConfirmAction = function(value){}
// groups... // groups...
var Items.Group = function(items){} var Items.Group = function(items){}
@ -80,11 +80,17 @@ var Items.Group = function(items){}
// XXX how do we indicate the selected item??? // XXX how do we indicate the selected item???
// - options.path / options.selected? // - options.path / options.selected?
// - path argument? // - path argument?
var Items.List = function(values){} Items.List = function(values){}
var Items.EditableList = function(values){} Items.EditableList = function(values){}
var Items.EditablePinnedList = function(values){} Items.EditablePinnedList = function(values){}
// Special list components...
//
// XXX these should be normal items...
Items.ListPath = function(){}
Items.ListTitle = function(){}
/********************************************************************** /**********************************************************************