Results 1 to 4 of 4

Thread: AllowBlank: True all TextField

  1. #1

    Question AllowBlank: True all TextField

    I wonder is there any fastest way to modified all existing TextField property to set the allowBlank: true. Else I need to search page by page to replace the script >.<

  2. #2
    Sencha Premium User StuartAshworth's Avatar
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    418

    Default

    If your fields are in Fieldsets there is a "defaults" config option that can choose defaults for the form items to save setting them everytime.

    Code:
    ...
    defaults: { width: 200,
                    allowBlank: true
                 }
    ...

  3. #3

    Default

    Thank for your reply. Unfortunately all those controls are added as a normal control by using the renderTo config.

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Code:
    Ext.form.TextField.prototype.allowBlank = true;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •