oxjs/demos/arrayinput/js/arrayinput.js

24 lines
525 B
JavaScript
Raw Normal View History

2011-11-30 14:32:12 +00:00
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)
});