oxjs/demos/arrayinput/js/arrayinput.js
2011-11-30 15:32:12 +01:00

24 lines
No EOL
525 B
JavaScript

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)
});