Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created May 29, 2010 05:41
Show Gist options
  • Save joegaudet/418063 to your computer and use it in GitHub Desktop.
Save joegaudet/418063 to your computer and use it in GitHub Desktop.
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