forked from 0x2620/oxjs
allow for max width in menus
This commit is contained in:
parent
4bb3196c03
commit
16556c0604
4 changed files with 11 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ Ox.MenuItem = function(options, self) {
|
|||
id: '',
|
||||
items: [],
|
||||
keyboard: '',
|
||||
maxWidth: 0,
|
||||
menu: null, // fixme: is passing the menu to 100s of menu items really memory-neutral?
|
||||
position: 0,
|
||||
title: [],
|
||||
|
|
@ -70,6 +71,7 @@ Ox.MenuItem = function(options, self) {
|
|||
.append(
|
||||
that.$title = $('<td>', {
|
||||
'class': 'OxCell OxTitle',
|
||||
css: self.options.maxWidth ? {maxWidth: self.options.maxWidth} : {},
|
||||
html: self.options.title[0]
|
||||
})
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue