Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8263911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:16:07+00:00 2026-06-08T04:16:07+00:00

I have created the class in Ext JS 4, and now I want to

  • 0

I have created the class in Ext JS 4, and now I want to extend that in another class. I use extend properties, to extend the class. But I am not able to extend the class. Do I want to use require to include the class file. But I keep both the files in the same directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:16:09+00:00Added an answer on June 8, 2026 at 4:16 am

    Define source paths for ExtJS to locate your source files.

    Ext.Loader.setConfig({
                enabled: true,
                paths: {
                    '[your namespace prefix here]': '[physical path]'
                }
            });
    

    Then define Ext.require or requires section in subclass to enable automatic path resolution.
    Read this link for more info.

    Example

    Base class: file located at folder root/view/common/Picker.js

    Ext.define('RL.view.common.Picker', {
        extend: "Ext.form.field.Picker",
    ...
    }
    

    Sub class: file located at folder root/view/selection/DriverTreeCombo.js

    Ext.define('RL.view.selection.DriverTreeCombo', {
            extend: "RL.view.common.Picker",
            requires: ['Ext.tree.Panel', 'RL.view.common.TreeBase'],
    ...
    }
    

    I have namespace as RL.xxx.xxx and RL is supposed to be the root folder. Now I can define Loader configuration as below

    Ext.Loader.setConfig({
                enabled: true,
                paths: {
                    'RL': '/root'                    
                }
            })
    

    Loader configuration should be set before ‘Ext.onReady(…)’ function call. Going through examples folder in ExtJS package would help you to see how this is done.

    Further reading:

    • The Class System
    • Dynamic Loading and new class system
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a class called Class1, and in another module, I want to
I have created an instance class from Ext.Component to use the ul tag. here
I have created a class that will manage connection and commands, I named it
I have implemented some utility classes in Flex that I want to use in
I created a class in ExtJs including variables and function that modifies internal properties
I have created a custom UIView that I would like to use on multiple
I'm defining a class that extends Ext.form.Panel but none of the fields appear when
I have a some class AddOrgWindowUI = Ext.extend(Ext.Window, { title: 'form', width: 400, height:
I have defined a class which represents a tree structure GeographicalUnits = Ext.extend(Ext.tree.TreePanel, {
I am following the guide at http://guides.rubyonrails.org/association_basics.html and I have created class Customer <

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.