menu button: handle items update
This commit is contained in:
parent
0f1fb7b154
commit
c88ce78e32
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ Ox.MenuButton = function(options, self) {
|
||||||
})
|
})
|
||||||
.options(options || {})
|
.options(options || {})
|
||||||
.update({
|
.update({
|
||||||
|
items: function() {
|
||||||
|
self.$menu.options({items: self.options.items});
|
||||||
|
},
|
||||||
title: function() {
|
title: function() {
|
||||||
if (self.options.type == 'text') {
|
if (self.options.type == 'text') {
|
||||||
self.$title.html(self.options.title);
|
self.$title.html(self.options.title);
|
||||||
|
|
Loading…
Reference in a new issue