Advertisement
Guest User

Untitled

a guest
May 6th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. /**
  2. * All field in a FormPanel to readOnly
  3. * @param {Ext.form.FormPanel} form
  4. * @param {boolean} readOnly
  5. * @returns {void}
  6. */
  7. formReadOnlyAllFields: function(form, readOnly){
  8. Ext.suspendLayouts();
  9. form.getForm().getFields().each(function(field) {
  10. field.setReadOnly(readOnly);
  11. });
  12. Ext.resumeLayouts();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement