Results 1 to 2 of 2

Thread: How to Import our own namespaces...

  1. #1
    Ext User ilker's Avatar
    Join Date
    Sep 2008
    Posts
    115
    Vote Rating
    0
      0  

    Arrow How to Import our own namespaces...

    Ext.namespace("com","com.ulasimBilgilendirme","com.ulasimBilgilendirme.data");
    com.ulasimBilgilendirme.data.Core = Ext.extend(Ext.grid.GridPanel,
    {
    .....
    });

    suppose that i write a class like above.. and i named the file Core.js and it is under the folder called com/ulasimBilgilendirme/data.
    and now i wanna create a new js file called GroupingDataGrid.js under the folder named data and it will extends my new class Core.. but i could not import the namespace com.ulasimBilgileri.data to my new js file GroupingDataGrid.js..
    Can anyone show me how to import files by the help of ext-js libraries... i use Ext.ns() but it did not work...
    THX FOR YOUR HELPS

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    8
      0  

    Default

    Heavens......

    Read and come back? http://extjs.com/blog/2008/05/28/use-namespaces/

    Namespace and where you store your files are not related to each other. It also doesn't have anything to do with how you 'import' a file.

Posting Permissions

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