forked from 0x2620/oxjs
honor layer showInfo flag and display creator as part of tooltip (fixes #332)
This commit is contained in:
parent
ed150f21f5
commit
89a3a119da
4 changed files with 33 additions and 27 deletions
|
|
@ -21,6 +21,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
separator: ',',
|
||||
sort: [],
|
||||
submitOnBlur: true,
|
||||
tooltip: '',
|
||||
type: 'input',
|
||||
width: 256
|
||||
})
|
||||
|
|
@ -117,8 +118,14 @@ Ox.ArrayEditable = function(options, self) {
|
|||
highlight: self.options.highlight,
|
||||
maxHeight: self.options.maxHeight,
|
||||
submitOnBlur: self.options.submitOnBlur,
|
||||
tooltip: 'Click to select' + (
|
||||
item.editable ? ', doubleclick to edit' : ''
|
||||
tooltip: (
|
||||
self.options.tooltipText
|
||||
? Ox.formatString(self.options.tooltipText, item) + '<br>'
|
||||
: ''
|
||||
) + 'Click to select' + (
|
||||
item.editable
|
||||
? ', doubleclick to edit'
|
||||
: ''
|
||||
),
|
||||
type: self.options.type,
|
||||
value: item.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue