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...'},
widgets.makeUIDialog(function(gid){
var that = this

View File

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