how can I use this js code in unigui?
Ext.onReady(function () {
var grid = Ext.widget({
xtype: 'grid',
height: 400,
store: {
fields: ['name', 'size', 'progress', 'status']
},
tbar: [{
xtype: 'filefield',
buttonOnly: true,
width: 10,
listeners: {
render: function (s) {
s.fileInputEl.set({ multiple: 'multiple' });
},
change: function (s) {
Ext.each(s.fileInputEl.dom.files, function (f) {