Sha256: 38d7277b4e7e3da4cbe18773de2791ac6a6c35f5a405a7e6125bd6283af560ad
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
Ext.define('FastUI.view.DataFieldFactory', { singleton: true, buildField:function(fields, field){ switch (field.datatype) { case 'VTreeCombobox': fields.push({ name: field.name.replace('_id', ''), type: 'auto' }); break; case 'VTable': fields.push({ name: field.name.replace('_id', ''), type: 'auto' }); break; case 'VLookup': fields.push({ name: field.name.replace('_id', ''), type: 'auto' }); break; case 'VSingleChoice': fields.push({ name: field.name.replace('_id', ''), type: 'auto' }); break; case 'VList': fields.push({ name: field.name.replace('_id', ''), type: 'auto' }); break; case 'VGroup': Ext.each(field.members, function(member){ this.buildField(fields,member); },this); break; default: if(Array.isArray(field)){ Ext.each(field, function(f){ this.buildField(fields,f); },this); }else{ fields.push({ name: field.name, type: 'auto' }); } } } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastui-0.1.4 | app/assets/javascripts/fastui/app/view/DataFieldFactory.js |