Last active
August 29, 2015 14:10
-
-
Save changtimwu/121df94856057c2908eb to your computer and use it in GitHub Desktop.
reactjs in coffeescript
This file contains hidden or 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
| R.fieldset className:"form-group #{ex_className}", | |
| R.legend className:"scheduler-border", item.name | |
| R.div className:"table-responsive", | |
| R.table className:"table table-hover", | |
| R.tbody null, | |
| for d_items, key in item.dynamic_item | |
| console.log d_items | |
| R.tr null, | |
| for i of d_items | |
| d_item = d_items[i] | |
| if d_item.type is 'dropdown' | |
| R.td null, DropdownItem(item:d_item) | |
| else | |
| R.td null, TextItem( item: d_item) | |
| R.td null, | |
| R.button type:"button", className:"btn btn-default btn-sm", onClick: (key)-> | |
| @removeItem key | |
| R.i className:"glyphicon glyphicon-remove" | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is for responding this article.
http://blog.blackbing.net/post/2014/08/05/reactjs-jsx-or-coffee-style