Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created July 21, 2012 02:16
Show Gist options
  • Save hvgotcodes/3154256 to your computer and use it in GitHub Desktop.
Save hvgotcodes/3154256 to your computer and use it in GitHub Desktop.
owView = hsc.ui.View.create
contentDisplayProperties: ['description']
createChildViews: (container) ->
container.left = 0
container.right = 0
container.top = 0
container.bottom = 0
@label = Ti.UI.createLabel
left: 3
right: 3
top: 0
bottom: 0
font:
fontSize: 12
textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT
container.add @label
updateDisplay: ->
@label.text = @getPath 'content.description'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment