Render Image data attributes

21 views
Skip to first unread message

Gabbar

unread,
Oct 20, 2014, 1:25:42 PM10/20/14
to glass...@googlegroups.com
I'm trying to render a image field with RenderImage. I need some data- attributes in the image but I can't seem to figure out how to go about implementing that. I've tried this but doesn't work

@RenderImage(image, x => x.Image, new RenderingParameters("width=100"), isEditable: true)   .

Thanks

Gabbar

unread,
Oct 20, 2014, 2:35:05 PM10/20/14
to glass...@googlegroups.com
I'm actually not looking for width=100 rather data-protect=true for my custom data attribute.
Reply all
Reply to author
Forward
0 new messages