minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-03-09 17:24:13 +03:00
parent ffb7142cc3
commit b2c97162f2
2 changed files with 8 additions and 3 deletions

View File

@ -983,6 +983,7 @@ module.Dialogs = core.ImageGridFeatures.Feature({
// ...there seems to be no way to make this generic... // ...there seems to be no way to make this generic...
// XXX think of a better name... (???) // XXX think of a better name... (???)
// XXX should the client be able to override shorthands??? // XXX should the client be able to override shorthands???
// XXX is there a way to access the parent context???
browse.items.makeSubContext = function(name, obj){ browse.items.makeSubContext = function(name, obj){
// arse args... // arse args...
var args = [...arguments].slice(1) var args = [...arguments].slice(1)

View File

@ -362,6 +362,7 @@ object.mixinFlat(function(){}, {
return this(value, options) }, return this(value, options) },
Action: function(value, options){}, Action: function(value, options){},
ConfirmAction: function(value){}, ConfirmAction: function(value){},
// XXX how do we handle list values -- edit only the last element as default???
Editable: function(value){}, Editable: function(value){},
// lists... // lists...
@ -559,11 +560,14 @@ Items.makeSubContext('field',
: options.value : options.value
], options) }, ], options) },
{ {
// XXX // Editable field value...
//
// NOTE: this is a shorthand to:
// make.Editable([title, value], ..)
Editable: function(title, value, options){ Editable: function(title, value, options){
}, return this.__proto__.Editable([title, value], options) },
// Value toggle field... // Togglable field value...
// //
// XXX // XXX
Toggle: function(title, options){ Toggle: function(title, options){