Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created May 23, 2011 20:56
Show Gist options
  • Save iammerrick/987583 to your computer and use it in GitHub Desktop.
Save iammerrick/987583 to your computer and use it in GitHub Desktop.
// ==========================================================================
// Project: Builder.KpiLibrarySidebarView
// Copyright: @2011 My Company, Inc.
// ==========================================================================
/*globals Builder */
/** @class
(Document Your View Here)
@extends SC.View
*/
Builder.KpiLibrarySidebarView = SC.TabView.extend(
/** @scope Builder.KpiLibrarySidebarView.prototype */ {
/**
* Configuration
*/
classNames: 'left-panel-block',
itemTitleKey: 'title',
itemValueKey: 'value',
nowShowing: 'myKpiLibrary',
items: [
{
title : 'My KPIs',
value: 'myKpiLibrary'
},
{
title : 'KPI Marketplace',
value: 'myKpiMarketplace'
}
],
myKpiLibrary: SC.LabelView.design({
escapeHTML: NO,
classNames: 'welcome-tab',
value: "<h1>Test Controls</h1><p>SproutCore comes bundled with a wide array of controls that you can use in your own applications. Most of these controls can be created very easily using the built-in view helper functions. Consult the source code of this application for samples code to use in your own application.</p>"
}),
myKpiMarketplace: SC.View.extend({
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment