Created
March 19, 2010 15:34
-
-
Save jeiting/337618 to your computer and use it in GitHub Desktop.
This file contains 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: ExposureView | |
// Copyright: ©2010 My Company, Inc. | |
// ========================================================================== | |
/*globals ExposureView */ | |
/** @namespace | |
My cool new framework. Describe your framework. | |
@extends SC.Object | |
*/ | |
ExposureView = SC.Object.create( | |
/** @scope ExposureView.prototype */ { | |
NAMESPACE: 'ExposureView', | |
VERSION: '0.1.0', | |
// TODO: Add global constants or singleton objects needed by your app here. | |
ExposureView: SC.View.extend({ | |
layout: { | |
width: 400, | |
height: 100 | |
}, | |
backgroundColor: 'white', | |
childViews: 'info status'.w(), | |
infoTitle: function () { | |
return 'Exposure #145'; | |
}.property(), | |
info: SC.View.extend(SC.Border,{ | |
borderStyle: SC.BORDER_BLACK, | |
layout: { | |
top: 5, | |
left: 5, | |
right: 5, | |
width:100, | |
bottom:5 | |
}, | |
childViews: 'label'.w(), | |
label: SC.LabelView.extend({ | |
layout: { | |
top: 5, | |
left: 5, | |
right:5, | |
height: 10 | |
}, | |
classNames: "exposure", | |
valueBinding: 'parentView.parentView.infoTitle' | |
}) | |
}), | |
status: SC.View.extend(SC.Border,{ | |
borderStyle: SC.BORDER_BLACK, | |
layout: { | |
top: 30, | |
left: 110, | |
right: 5, | |
bottom:5 | |
} | |
}) | |
}) | |
}) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment