Ox.MenuButton: add 'overlap' option

This commit is contained in:
rolux 2012-12-18 22:47:57 +01:00
parent 7ff601a0a4
commit 716db744b9

View file

@ -33,6 +33,7 @@ Ox.MenuButton = function(options, self) {
id: '', id: '',
items: [], items: [],
maxWidth: 0, maxWidth: 0,
overlap: 'none',
style: 'rounded', style: 'rounded',
title: '', title: '',
type: 'text', type: 'text',
@ -72,6 +73,7 @@ Ox.MenuButton = function(options, self) {
self.$button = Ox.Button({ self.$button = Ox.Button({
id: self.options.id + 'Button', id: self.options.id + 'Button',
overlap: self.options.overlap,
style: 'symbol', style: 'symbol',
title: self.options.type == 'text' || !self.options.title title: self.options.type == 'text' || !self.options.title
? 'select' : self.options.title, ? 'select' : self.options.title,