Last active
December 11, 2015 03:39
-
-
Save trabianmatt/4539375 to your computer and use it in GitHub Desktop.
sample titanium-backbone view
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
template = require './template' | |
module.exports = class Window extends Backbone.View | |
viewName: 'Window' | |
attributes: | |
backgroundColor: '#eee' | |
layout: 'vertical' | |
events: -> | |
'click Button.clickable': -> alert 'Told you so!' | |
render: -> | |
@$el.html template | |
title: 'Installation was successful using Jade!' | |
@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment