Ext JS Screencast #002 Ext.extend

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
22,053
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 1, 2008

Here we discuss the Ext.extend method and demonstrate how you can use it to your advantage.

Link to this comment:

Share to:

Uploader Comments (tdginnovations)

  • Thanks muchly, this was a helpful video. For some reason it all clicked into place.

  • Thanks dude.

Top Comments

  • Hey dude! it's great. just keep going.

    thanks.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Should be noted that here Jay presents 'the old way' Ext.extend method, commonly used in Ext 1.x; starting with Ext 2.x there is also a new approach of using Ext.extend without the need to explicitly define the SubClass constructor(e.g the var b = function (){}; part).

  • Thanks very much, I just went to extend my first Ext class and your tutorial helped a lot to understand what is required. :)

  • YouTube won't let me post the JavaScript.

  • YouTube won't let me post the JavaScript example. But just create a function, A. Add a method X to its prototype that alerts "Hi" to the user. Create a function B. Instantiate an instance of A as Test1. Use Ext to extend the A class with the superclass B (nothing new added). Now instantiate another instance of A as Test2.

    Call the X method on Test1 (you see the alert).

    Call the X method on Test2.

  • Yeah, but pretty worthless. The Ext.extend method claims to extend an existing CLASS, but ends up blowing away any prototype already defined for it. I have an example, but I'll have to paste this in separate comments because even though YouTube says I had 6 characters left, when I tried to post the whole comment it says I have too many characters (sigh).

  • Please keep this coming. I am a subscriber now. I learn so much than reading the online docs on extjs's website.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more