O'Reilly logo

Ext JS 3.0 Cookbook by Jorge Ramon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building custom JavaScript classes that inherit the functionality of Ext JS

You can incorporate features of Ext JS into your own JavaScript classes. For example, the ObservableList class created in this recipe will use the features of the framework's Ext.util.Observable class to fire notifications when items are added, removed, or when the list is cleared. The list's interface will be as follows:

  • add(object): A function that inserts an item in the list and returns the position into which the item was inserted
  • insert(index, object): A function that inserts an item to the List at the specified index
  • item(index): A function that returns the element at the specified index
  • remove(object): A function to remove the first occurrence of a specific object ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required