// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== /*globals TestControls */ /** @class @extends SC.CategoriesController */ TestControls.rootCategory = SC.Object.create({ treeItemIsExpanded: YES, treeItemChildren: [ SC.Object.create({ treeItemIsExpanded: YES, group: true, name: "Controls", treeItemChildren: [ SC.Object.create({ name: "Buttons", show: "buttons_page" }), SC.Object.create({ name: "Checkboxes", show: "checkboxes_page" }), SC.Object.create({ name: "Progress", show: "progress_page" }), SC.Object.create({ name: "Radio", show: "radio_page" }), SC.Object.create({ name: "Segmented Button", show: "segmented_page" }), SC.Object.create({ name: "Select Button", show: "select_page" }), SC.Object.create({ name: "Sliders", show: "sliders_page" }), SC.Object.create({ name: "Tabbed View", show: "tab_page" }) ] }), SC.Object.create({ treeItemIsExpanded: YES, group: true, name: 'Panels', treeItemChildren: [ SC.Object.create({ name: 'Panels', show: 'panels_page' }) ] }), SC.Object.create({ treeItemIsExpanded: YES, group: true, name: "Collections", treeItemChildren: [ SC.Object.create({ name: "List", show: "list_page" }) ] }), SC.Object.create({ treeItemIsExpanded: YES, group: true, name: "Fields", treeItemChildren: [ SC.Object.create({ name: "Text Field", show: "text_field_page" }) ] }), SC.Object.create({ treeItemIsExpanded: YES, group: true, name: "Layout", treeItemChildren: [ SC.Object.create({ name: "Flowed Layout", show: "flow_layout_page" }), SC.Object.create({ name: "Split", show: "split_page" }) ] }), SC.Object.create({ treeItemIsExpanded: YES, group: true, name: "Scroll", treeItemChildren: [ SC.Object.create({ name: "Simple", show: "scroll_page" }) ] }) ] }); TestControls.categoriesController = SC.TreeController.create( /** @scope SampleControls.appController.prototype */ { treeItemIsGrouped: YES }) ;