1
0
Fork 0
forked from 0x2620/oxjs

add Ox.FileButton

This commit is contained in:
rlx 2012-03-23 17:57:12 +00:00
commit 17d92a3ff7
3 changed files with 152 additions and 32 deletions

View file

@ -11,16 +11,32 @@ Ox.load('UI', function() {
left: '16px',
top: '16px'
})
.appendTo(Ox.UI.$body);
.appendTo(Ox.$body);
Ox.FileInput({
Ox.FileButton({
title: 'Select Files...',
width: 256
})
.bindEvent({
click: function(data) {
this.options({disabled: true});
Ox.FileInput({
value: data.files,
width: 256
})
.css({
position: 'absolute',
left: '16px',
top: '80px'
})
.appendTo(Ox.$body);
}
})
.css({
position: 'absolute',
left: '16px',
top: '48px'
})
.appendTo(Ox.UI.$body);
.appendTo(Ox.$body);
});