]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/classic/organizer/AlbumTree.js
2 * @class Ext.org.AlbumTree
3 * @extends Ext.tree.Panel
6 * This class implements the "My Albums" tree. In addition, this class provides the ability
7 * to add new albums and accept dropped items from the {@link Ext.org.ImageView}.
9 Ext
.define('Ext.org.AlbumTree', {
10 extend
: 'Ext.tree.Panel',
11 alias
: 'widget.albumtree',
19 ddGroup
: 'organizerDD',
20 ptype
: 'treeviewdragdrop',
27 initComponent: function() {
35 handler
: this.addAlbum
39 this.store
= Ext
.create('Ext.data.TreeStore', {
60 * Adds a new album node to the root
62 addAlbum: function() {
63 var root
= this.store
.getRoot();
67 name
: 'Album ' + this.count
,