Skip to content

Instantly share code, notes, and snippets.

@glappen
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glappen/40095de8729295e1f5c2 to your computer and use it in GitHub Desktop.
Save glappen/40095de8729295e1f5c2 to your computer and use it in GitHub Desktop.
renderCompanyList: function() {
return div(
h2('Companies'),
this.state.CompanyList.length ?
table(
{border: 1},
thead(tr(th('ID'), th('Name'), th('Created'), th('OwnderRepId'))),
tbody(map(this.state.CompanyList, bind(this, function(company) {
return tr(td(company.CompanyId), td(company.Name), td(company.CreatedTime), td(company.OwnderRepId))
})))
)
: "None"
)
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment