forked from 0x2620/oxjs
add proper tooltips to map
This commit is contained in:
parent
479e7da2f5
commit
64032b5e9c
8 changed files with 57 additions and 17 deletions
|
|
@ -258,11 +258,13 @@ Ox.Element = function(options, self) {
|
|||
}).show(e);
|
||||
}
|
||||
|
||||
self.setOption = function() {
|
||||
// self.setOptions(key, value)
|
||||
self.setOption = function(key, value) {
|
||||
// self.setOption(key, value)
|
||||
// is called when an option changes
|
||||
// (to be implemented by widget)
|
||||
// FIXME: can't set tooltip options this way
|
||||
if (key == 'tooltip') {
|
||||
that.$tooltip && that.$tooltip.options({title: value});
|
||||
}
|
||||
};
|
||||
|
||||
that._self = self; // fixme: remove
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue