Skip to content

Instantly share code, notes, and snippets.

@changtimwu
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save changtimwu/121df94856057c2908eb to your computer and use it in GitHub Desktop.

Select an option

Save changtimwu/121df94856057c2908eb to your computer and use it in GitHub Desktop.
reactjs in coffeescript
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"
@changtimwu
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment