1
0
Fork 0
forked from 0x2620/oxjs

add proper tooltips to map

This commit is contained in:
rlx 2011-10-31 11:29:59 +00:00
commit 64032b5e9c
8 changed files with 57 additions and 17 deletions

View file

@ -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