X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/app/nested-loading/app/view/book/SideBar.js diff --git a/examples/app/nested-loading/app/view/book/SideBar.js b/examples/app/nested-loading/app/view/book/SideBar.js new file mode 100644 index 00000000..02f64c59 --- /dev/null +++ b/examples/app/nested-loading/app/view/book/SideBar.js @@ -0,0 +1,34 @@ +/** + * The sidebar view for the application. Used to display a list of books. + * @extends Ext.view.View + */ +Ext.define('Books.view.book.SideBar', { + alias: 'widget.booksidebar', + extend: 'Ext.view.View', + + initComponent: function() { + Ext.apply(this, { + id: 'sidebar', + + dock: 'left', + width: 180, + border: false, + cls: 'sidebar-list', + + selModel: { + deselectOnContainerClick: false + }, + + store: '', + itemSelector: '.product', + tpl: new Ext.XTemplate( + '', + '', + '
{name}
', + '
' + ) + }); + + this.callParent(arguments); + } +}); \ No newline at end of file