Skip to content

Instantly share code, notes, and snippets.

Ups.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
// Add childViews to this pane for views to display immediately on page
// load.
mainPane: SC.MainPane.design({
childViews: 'middleView topView bottomView'.w(),
topView: SC.ToolbarView.design({
layout: { top: 0, left: 0, right: 0, height: 36 },
childViews: 'labelView addButton'.w(),
Ups.planController = SC.TreeController.create(
SC.CollectionViewDelegate,
/** @scope Ups.planController.prototype */ {
content: null,
treeItemChildrenKey: 'actions',
treeItemIsGrouped: YES,
collectionViewShouldBeginDrag: function(view) {
alert("HELLO!");
return NO;
},