1
0
Fork 0
forked from 0x2620/oxjs

add ArrayInput demo

This commit is contained in:
rolux 2011-11-30 15:32:12 +01:00
commit a6d4734bb3
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,24 @@
Ox.load('UI', function() {
var $arrayInput = Ox.ArrayInput({
label: 'ArrayInput',
max: 3,
value: ['foo', 'bar']
})
.css({margin: '16px'})
.appendTo(Ox.$body);
Ox.Button({
title: 'Reset'
})
.css({marginLeft: '16px'})
.bindEvent({
click: function() {
$arrayInput.options({
value: ['foo', 'bar']
});
}
})
.appendTo(Ox.$body)
});