forked from 0x2620/oxjs
add formatColor()
This commit is contained in:
parent
be3b1d573d
commit
6b0779fcab
3 changed files with 81 additions and 8 deletions
|
|
@ -74,8 +74,8 @@ Ox.Button = function(options, self) {
|
|||
if (self.options.tooltip) {
|
||||
self.tooltips = Ox.isArray(self.options.tooltip) ? self.options.tooltip : [self.options.tooltip];
|
||||
self.$tooltip = Ox.Tooltip({
|
||||
title: self.tooltips[self.selectedTitle]
|
||||
});
|
||||
title: self.tooltips[self.selectedTitle]
|
||||
});
|
||||
that.mouseenter(mouseenter)
|
||||
.mouseleave(mouseleave);
|
||||
}
|
||||
|
|
@ -180,6 +180,8 @@ Ox.Button = function(options, self) {
|
|||
that.toggleTitle = function() {
|
||||
self.selectedTitle = 1 - self.selectedTitle;
|
||||
setTitle(self.titles[self.selectedTitle].title);
|
||||
// fixme: if the tooltip is visible
|
||||
// we also need to call show()
|
||||
self.$tooltip && self.$tooltip.options({
|
||||
title: self.tooltips[self.selectedTitle]
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue