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
|
|
@ -13,6 +13,7 @@ Ox.Input <f:Ox.Element> Input Element
|
|||
autocompleteReplaceCorrect <b> if true, only valid values can be entered
|
||||
autocompleteSelect <b> if true, menu is displayed
|
||||
autocompleteSelectHighlight <b> if true, value in menu is highlighted
|
||||
autocompleteSelectMaxWidth <n|0> Maximum width of autocomplete menu, or 0
|
||||
autocompleteSelectSubmit <b> if true, submit input on menu selection
|
||||
autocorrect <s|r|f|null> ('email', 'float', 'int', 'phone', 'url'), or
|
||||
<r> regexp(value), or
|
||||
|
|
@ -73,6 +74,7 @@ Ox.Input = function(options, self) {
|
|||
autocompleteSelect: false,
|
||||
autocompleteSelectHighlight: false,
|
||||
autocompleteSelectMax: 0,
|
||||
autocompleteSelectMaxWidth: 0,
|
||||
autocompleteSelectSubmit: false,
|
||||
autovalidate: null,
|
||||
changeOnKeypress: false,
|
||||
|
|
@ -424,6 +426,7 @@ Ox.Input = function(options, self) {
|
|||
var menu = Ox.Menu({
|
||||
element: self.$input,
|
||||
id: self.options.id + 'Menu', // fixme: we do this in other places ... are we doing it the same way? var name?,
|
||||
maxWidth: self.options.autocompleteSelectMaxWidth,
|
||||
offset: {
|
||||
left: 4,
|
||||
top: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue