Skip to content

Commit

Permalink
Merge pull request #9 from RedWall/feature/html-helpers-documentation
Browse files Browse the repository at this point in the history
Adds ImageFor documentation
  • Loading branch information
theyo committed Oct 21, 2017
2 parents cb8c2ce + 62eb280 commit cb67946
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ Will add a `ReCaptcha` `ModelState` error if the validation fails.

HtmlHelpers
====
See [http://stronglikebool.com/2014/09/20/enum-support-in-mvc-5_1/](http://stronglikebool.com/2014/09/20/enum-support-in-mvc-5_1/)
`EnumDisplay`, `EnumDisplayFor`, and `EnumDisplayNameFor` See [http://stronglikebool.com/2014/09/20/enum-support-in-mvc-5_1/](http://stronglikebool.com/2014/09/20/enum-support-in-mvc-5_1/)

`@Html.ImageFor(m => m.ImageAsByteArray)`
Will take a model property that is an image stored as a `byte[]` and will render an `<img>` HTML element with an inline base64 encoded image.

0 comments on commit cb67946

Please sign in to comment.