Created
March 8, 2012 16:56
-
-
Save trabianmatt/2002055 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
styles = require('styles').ui | |
KitchenSink = require './main' | |
{ Button, Window } = require 'views/ui' | |
module.exports = class IntroView extends Window | |
render: => | |
@layout (view) => | |
view.add @make 'Label', styles.labels.h1, | |
text: "Launch Kitchen Sink" | |
view.add @make 'Label', styles.labels.p, | |
text: ''' | |
The Kitchen Sink project was included in this bootstrapped app as an example | |
of user interface elements and coding style for titanium-backbone. To remove | |
the kitchen sink, simply remove the titanium-backbone-ks module from package.json | |
and remove the reference to 'ks/views/intro' from src/views/main.coffee | |
''' | |
button = new Button | |
text: 'Launch Kitchen Sink' | |
style: | |
top: 10 | |
click: => | |
console.log 'Open the kitchen sink.' | |
kitchenSink = new KitchenSink | |
kitchenSink.render().open() | |
view.add button.render().view | |
@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment