mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added toggler state list to .showDoc(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e879072675
commit
65cef61880
@ -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
|
||||
|
||||
@ -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>')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user