mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor prototyping...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3ed3db026f
commit
b0507242fb
@ -244,8 +244,9 @@ requirejs([
|
|||||||
make('C'),
|
make('C'),
|
||||||
]),
|
]),
|
||||||
make.nest('D', [
|
make.nest('D', [
|
||||||
make('E'),
|
make.group(
|
||||||
make('F'),
|
make('E'),
|
||||||
|
make('F'))
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@ -222,6 +222,8 @@ object.mixinFlat(function(){}, {
|
|||||||
//
|
//
|
||||||
// If the context is constructed recursively it will return self
|
// If the context is constructed recursively it will return self
|
||||||
//
|
//
|
||||||
|
// XXX doc: instruct access to the parent context...
|
||||||
|
// this.__proto__.* ???
|
||||||
// XXX TEST...
|
// XXX TEST...
|
||||||
makeSubContext: function(name, obj){
|
makeSubContext: function(name, obj){
|
||||||
// arse args...
|
// arse args...
|
||||||
@ -323,6 +325,8 @@ object.mixinFlat(function(){}, {
|
|||||||
// options???
|
// options???
|
||||||
// ...options does not work but seems obvious...
|
// ...options does not work but seems obvious...
|
||||||
// XXX BUG???
|
// XXX BUG???
|
||||||
|
// XXX this should accept the results of list constructors like
|
||||||
|
// .EditableList(..) and friends...
|
||||||
nest: function(item, list, options){
|
nest: function(item, list, options){
|
||||||
options = Object.flatCopy(options || {})
|
options = Object.flatCopy(options || {})
|
||||||
//options = Object.assign(Object.create(this.options || {}), options || {})
|
//options = Object.assign(Object.create(this.options || {}), options || {})
|
||||||
@ -423,12 +427,17 @@ object.mixinFlat(function(){}, {
|
|||||||
Text: function(value, options){},
|
Text: function(value, options){},
|
||||||
|
|
||||||
Action: function(value, options){},
|
Action: function(value, options){},
|
||||||
ConfirmAction: function(value){},
|
// XXX is this the same as .Confirm(...)???
|
||||||
|
//ConfirmAction: function(value){},
|
||||||
// XXX how do we handle list values -- edit only the last element as default???
|
// XXX how do we handle list values -- edit only the last element as default???
|
||||||
Editable: function(value){},
|
Editable: function(value){},
|
||||||
|
|
||||||
// lists...
|
// lists...
|
||||||
// XXX how is this different from .group(..) or .batch(..)???
|
// XXX how is this different from .group(..) or .batch(..)???
|
||||||
|
// ...or is this just the following???
|
||||||
|
// function(...args){
|
||||||
|
// return this.group(
|
||||||
|
// this.batch(...args)) }
|
||||||
//List: function(values){},
|
//List: function(values){},
|
||||||
|
|
||||||
EditableList: function(values){},
|
EditableList: function(values){},
|
||||||
@ -642,6 +651,12 @@ Items.makeSubContext('field',
|
|||||||
// from the text...
|
// from the text...
|
||||||
Editable: makeFieldWrapper('Editable'),
|
Editable: makeFieldWrapper('Editable'),
|
||||||
|
|
||||||
|
// XXX test...
|
||||||
|
EditableList: function(title, ...args){
|
||||||
|
this.nest(
|
||||||
|
this.__proto__(title),
|
||||||
|
this.__proto__.EditableList(...args)) },
|
||||||
|
|
||||||
// Togglable field value...
|
// Togglable field value...
|
||||||
//
|
//
|
||||||
// XXX should we have a version of this with the value in a button
|
// XXX should we have a version of this with the value in a button
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user