Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Created August 12, 2015 06:59
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 beyond-code-github/a663d86e6eb72cef7819 to your computer and use it in GitHub Desktop.
Save beyond-code-github/a663d86e6eb72cef7819 to your computer and use it in GitHub Desktop.
Generic list markup
<h1>@Model.ListTitle</h1>
<form action="@Model.PostUrl">
<input type="text" id="name" />
<input type="text" id="notes" />
<input type="submit" id="addNewButton" value="Add" />
</form>
<table id="dataTableTarget">
</table>
<script>
$.dataTable("#dataTableTarget", "@Model.GetUrl", [
{ label: "Name", value: "name" },
{ label: "Notes", value: "notes"} ]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment