Created
May 29, 2010 05:41
-
-
Save joegaudet/418063 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
DarkHorse.Inbox = SC.View.extend( | |
/** @scope DarkHorse.Inbox.prototype */ { | |
childViews: "inboxSplitView".w(), | |
// | |
inboxSplitView: SC.SplitView.design({ | |
layout: { top: 0, right: 0, bottom: 0, left: 0 }, | |
defaultThickness: 0.25, | |
layoutDirection: SC.LAYOUT_HORIZONTAL, | |
topLeftView: SC.View.create({}), | |
dividerView: SC.SplitDividerView.design(), | |
bottomRightView: SC.View.create({}) | |
}) | |
}); | |
// in the main view this is the pertinent instantiation | |
splitView: SC.SplitView.design({ | |
layout: { top: 40, right: 0, bottom: 40, left: 0 }, | |
defaultThickness: 0.25, | |
layoutDirection: SC.LAYOUT_HORIZONTAL, | |
topLeftView: SC.SourceListView.design({ | |
layout: { top: 0, right: 0, bottom: 0, left: 0 }, | |
showAlternatingRows: YES, | |
contentBinding: 'DarkHorse.sidebarController.arrangedObjects', | |
selectionBinding: 'DarkHorse.sidebarController.selection', | |
contentValueKey: 'title', | |
hasContentIcon: YES, | |
contentIconKey: "icon", | |
target: 'DarkHorse.sidebarController', | |
action: 'selectionChanged' | |
}), | |
dividerView: SC.SplitDividerView.design({ | |
classNames: ["splitDivider"], | |
cursor: SC.Cursor.create({ cursorStyle:"col-resize"}) | |
}), | |
bottomRightView: DarkHorse.Inbox.create() | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment