Im looking for something like this: https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/partial-tag-helper?view=aspnetcore-6.0#view-data
but when testing <div epi-property="@Model.CurrentPage.ImageAsContentReference" view-data='@(new ViewDataDictionary(ViewData) { { "width", 300 },{ "height", 300},{ "format", "webp" } })' />
it is rendering
<div view-data="Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary"> ... content comes here ... </div>
CMS12
Is there a way to send viewdata parameters with use of taghelper epi-property?
<div epi-property="@Model.CurrentPage.ImageAsContentReference" />
The equivalence with HtmlHelpers:
@Html.PropertyFor(m => Model.CurrentPage.ImageAsContentReference, new { width = 300, height = 300, format = "webp"});
then i can further down in the stack get the data with "ViewData" in my displaytemplate