forked from 0x2620/oxjs
add Ox.FileButton
This commit is contained in:
parent
162c0f118b
commit
17d92a3ff7
3 changed files with 152 additions and 32 deletions
|
|
@ -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);
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue