Skip to content

Instantly share code, notes, and snippets.

@marcuswestin
Created February 12, 2015 14:34
Show Gist options
  • Save marcuswestin/023270c6b178b8c7dc42 to your computer and use it in GitHub Desktop.
Save marcuswestin/023270c6b178b8c7dc42 to your computer and use it in GitHub Desktop.
React.js without jsx
lightbox.Show({
closable: true,
content: div(W(240),
div(Fill,
div('How did it go?', Font(18)),
div(style({ margin:px(8,0) }),
div(style({ border:'1px solid #666', marginBottom:24+8, borderRadius:4 }),
textarea(id('EndChatComment'), style({ margin:4, width:'90%', border:'none', resize:'none', height:80 }))
)
)
),
div(Pos.br(0,0),
Button('RESOLVED', Bg('#15661F'), Margin(8,8,8,0), tappable(bind(this, function() {
this.endConversation(eventLog, true)
}))),
Button('UN-RESOLVED', Bg('#7D3326'), Margin(8,8,8,0), tappable(bind(this, function() {
this.endConversation(eventLog, false)
}))),
div(Clear)
)
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment