Results 1 to 2 of 2

Thread: Override does not work with Ext.data.Validations

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    61
    Vote Rating
    2
      0  

    Default Override does not work with Ext.data.Validations

    Ext.data.Validations cannot be overridden. See the following test override:

    Code:
    Ext.define('MyApp.extend.override.Validations', {    override: 'Ext.data.Validations',
        test_function: function(config, value) {
            return config.list && Ext.Array.indexOf(config.list,value) == -1;
        }
    });

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1391
      0  

    Default

    Ext.define to override a singleton is not supported. You can change the classes as it will be created right after it has been defined.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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