Created
May 23, 2011 20:56
-
-
Save iammerrick/987583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// 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