Results 1 to 2 of 2

Thread: Additional Ext classes

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default Additional Ext classes

    Hello All,

    kindly advise on the below

    'Ext.ux.*' we are not using in our project. but i want to use it my test cases,

    currently i can run my test cases via `
    Code:
    Ext.ux.*
    ` in the requries of
    Code:
    applicaiton.js
    but we dont want in the production.

    plz advise how can i add the add

    i tried adding under UnitTest (Allowed Globals) and addtinal library

    i am using 2.2.0.125

    thanks

  2. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    192
    Answers
    18
    Vote Rating
    23
      0  

    Default

    Try this:

    - In your project's app.json under the "development" section, override the "requires" for the development build and add the "ux" package. For example:

    Code:
        "development": {
            "watch": {
                "delay": 250
            },
            "tests": {
                "path": "test/project.json"
            },
            "requires": [
                "ux"
            ]
        },
    - Then, in your test suite, do an "Ext.require" of the ux classes you need, which will load them:

    Code:
    describe('demo', function() {
        beforeAll(function(done) {
            Ext.require('Ext.ux.*', function() {
                done();
            });
        });
        
        it('should have loaded the Ext.ux.* classes', function() {
            expect(Ext.ux.GMapPanel).toBeDefined();
        });
    });
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Similar Threads

  1. Combining all ext classes in one file and required classes.
    By panosk@modus.gr in forum Ext 6: Q&A
    Replies: 1
    Last Post: 16 Dec 2015, 1:18 PM
  2. Replies: 2
    Last Post: 18 Mar 2013, 5:07 AM
  3. Why does this classes no declared error reference no classes?
    By istanczyk in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 6 Jul 2012, 4:39 AM
  4. How to set additional require statements to classes
    By hschaefer123 in forum Sencha Architect 2.x: Help & Discussions
    Replies: 0
    Last Post: 12 Apr 2012, 1:48 AM

Posting Permissions

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