mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ffb7142cc3
commit
b2c97162f2
@ -983,6 +983,7 @@ module.Dialogs = core.ImageGridFeatures.Feature({
|
||||
// ...there seems to be no way to make this generic...
|
||||
// XXX think of a better name... (???)
|
||||
// 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){
|
||||
// arse args...
|
||||
var args = [...arguments].slice(1)
|
||||
|
||||
@ -362,6 +362,7 @@ object.mixinFlat(function(){}, {
|
||||
return this(value, options) },
|
||||
Action: function(value, options){},
|
||||
ConfirmAction: function(value){},
|
||||
// XXX how do we handle list values -- edit only the last element as default???
|
||||
Editable: function(value){},
|
||||
|
||||
// lists...
|
||||
@ -559,11 +560,14 @@ Items.makeSubContext('field',
|
||||
: options.value
|
||||
], options) },
|
||||
{
|
||||
// XXX
|
||||
// Editable field value...
|
||||
//
|
||||
// NOTE: this is a shorthand to:
|
||||
// make.Editable([title, value], ..)
|
||||
Editable: function(title, value, options){
|
||||
},
|
||||
return this.__proto__.Editable([title, value], options) },
|
||||
|
||||
// Value toggle field...
|
||||
// Togglable field value...
|
||||
//
|
||||
// XXX
|
||||
Toggle: function(title, options){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user