Skip to content

Instantly share code, notes, and snippets.

render: function(context, firstTime) {
var hints = this.get('hints');
console.log('render content %@'.fmt(hints));
var hHeight = this.get('hintHeight');
var hWidth = this.get('hintWidth');
if (hints) {
hints.forEach(function(item, i) {
var top = 0;
var left = ((i % 3) + 1) * hWidth;
createChildViews : function() {
var childViews = [], view;
var given = this.getPath('content.given');
this.inputView = view = this.createChildView(SC.LabelView, {
valueBinding: '*content.value',
isEditable: given ? NO : YES,
click: function(evt) {
return this.touchStart(evt);
# Add initial buildfile information here
config :all, :required => [:sproutcore, :'sproutcore/animation', :'sproutcore-ui']
config :'sproutcore-ui', :required => [:sproutcore]