Skip to content

Instantly share code, notes, and snippets.

@jeiting
Created March 18, 2010 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeiting/336839 to your computer and use it in GitHub Desktop.
Save jeiting/336839 to your computer and use it in GitHub Desktop.
// ==========================================================================
// 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: 'titleText',
titleText: 'Exposure #146'
})
}),
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