X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/app/view/index/Container.js diff --git a/docs/app/view/index/Container.js b/docs/app/view/index/Container.js new file mode 100644 index 00000000..d2b5cb55 --- /dev/null +++ b/docs/app/view/index/Container.js @@ -0,0 +1,80 @@ +/** + * List of classes on front page. + * Together with links to guides and icons legend. + */ +Ext.define('Docs.view.index.Container', { + extend: 'Ext.container.Container', + alias : 'widget.indexcontainer', + cls: 'class-list', + + initComponent: function() { + var data = this.classData; + + var tpl = new Ext.XTemplate( + '

{title}

', + '
', + '

Legend

', + '', + '
', + '
', + '

Guides

', + '
', + 'Getting Started', + 'Class System', + 'MVC Architecture', + 'Layouts and Containers', + '
', + '
', + 'Data', + 'Grids', + 'Trees', + 'Charts', + '
', + '
', + 'Components', + 'Theming', + 'Direct', + 'Accessibility', + '
', + '', + '
', + '', + '', + '
', + '

{name}

', + '', + '
', + '', + '

{.}

', + '', + '
', + '
', + '
', + '
', + '
', + '
', + { + renderClasses: function(category) { + return Ext.Array.map(data.categories[category].classes, function(cls) { + return Ext.String.format('{0}', cls); + }).join("\n"); + } + } + ); + + this.html = tpl.apply(Ext.apply({ + // Use the same title as in + title: document.getElementsByTagName("title")[0].innerHTML + }, data)); + + this.callParent(arguments); + } +});