Slide 28
Slide 28 text
App.UiFileDialogComponent = Ember.Component.extend({
classNames: ['ui-file-dialog'],
tagName: 'input',
attributeBindings: [
'type', 'accept', 'style',
'directory:nwdirectory', 'save:nwsaveas'
],
type: 'file',
style: 'display: none',
!
value: '',
accept: null,
directory: false,
save: false,
!
open: function() {
this.$().click();
},
!
change: function() {
this.set('value', this.$().val());
}
});