added toggler state list to .showDoc(..)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-09-06 19:25:17 +03:00
parent e879072675
commit 65cef61880
2 changed files with 10 additions and 4 deletions

View File

@ -1359,7 +1359,7 @@ var UICollectionActions = actions.Actions({
}) })
}) })
})], })],
browseImageCollections: ['Image/$Collections...', browseImageCollections: ['Collections|Image/$Collections...',
{dialogTitle: 'Image Collections...'}, {dialogTitle: 'Image Collections...'},
widgets.makeUIDialog(function(gid){ widgets.makeUIDialog(function(gid){
var that = this var that = this

View File

@ -873,6 +873,7 @@ var UIIntrospectionActions = actions.Actions({
.addClass('help-dialog') .addClass('help-dialog')
actions.forEach(function(action){ actions.forEach(function(action){
var toggler = that.isToggler(action)
res.append($('<div class="action doc">') res.append($('<div class="action doc">')
.prop('tabindex', true) .prop('tabindex', true)
.append($('<h2>') .append($('<h2>')
@ -880,10 +881,15 @@ var UIIntrospectionActions = actions.Actions({
.append($('<i>') .append($('<i>')
.text(doc[action][0])) .text(doc[action][0]))
.append($('<div>') .append($('<div>')
.html('Features: ' .html(
+ that.getHandlerSourceTags(action) // features...
'Features: ' + that.getHandlerSourceTags(action)
.map(feature2lnk) .map(feature2lnk)
.join(', '))) .join(', ')
// toggler states...
+ (toggler ?
('<br>Toggler states: '+ that[action]('??').join(', '))
: '')))
.append($('<hr>')) .append($('<hr>'))
// parse the action doc... // parse the action doc...
.append($('<pre>') .append($('<pre>')