Skip to content

Instantly share code, notes, and snippets.

planBuildingViewsDidChange: function() {
var planBuildingViews = SC.A(this.get("planBuildingViews")),
showResearch = (planBuildingViews.indexOf("siteResearch") > -1),
showPlanning = (planBuildingViews.indexOf("planning") > -1),
splitView = Research.mainPage.planBuilding,
research = splitView.topLeftView,
planning = splitView.bottomRightView,
divider = splitView.dividerView,
dividerThickness = splitView.dividerThickness,
totalHeight = splitView.get("frame").height;
Superduper.mainPage = SC.Page.design({
mainPane: SC.MainPane.design({
backgroundColor: '#ddd',
childViews: 'topBar body bottomBar'.w(),
topBar: SC.ToolbarView.design({
layout: { top: 0, left: 0, right: 0, height: 40 },
backgroundColor: '#4c4c4c',
borderStyle: SC.BORDER_NONE,
{"total_rows":2,"offset":0,"rows":[
{"id":"1","key":"14-NB","value":{"id":"1","partNumber":"1234-567","description":"Line 1, Line2","brand":"3M","stockNumber":"14-NB"}},
{"id":"2","key":"999-9999","value":{"id":"2","partNumber":"13-NB","description":"Description Line 1, Line 2","brand":"3M","stockNumber":"999-9999"}}
]}