Skip to content

Instantly share code, notes, and snippets.

@ChuckBryan
Created July 27, 2014 21:50
Show Gist options
  • Save ChuckBryan/8ed968a6d42fada54008 to your computer and use it in GitHub Desktop.
Save ChuckBryan/8ed968a6d42fada54008 to your computer and use it in GitHub Desktop.
@model Boolean?
<div class="checkbox">
<label>
@Html.CheckBox("", Model.HasValue && Model.Value, new{ng_model = Html.AngularBindingForModel()}) @ViewData.ModelMetadata.DisplayName
</label>
</div>
@ChuckBryan
Copy link
Author

This is my implementation of a boolean editor using the framework that Matt Honeycutt set up for FailTracker that was demonstrated in his Pluralsight Video.

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