Sorry, nothing easier of HtmlAttributes.
So I risolved this question out.
The solution, if someone needs too:
- <div class="editor-label">
- @Html.LabelFor(model => model.ReleaseDate)
- </div>
- <div class="editor-field">
- @Html.EditorFor(model => model.ReleaseDate, new { @name = "mydate", @id = "mydate", @type = "date", @data_role = "datebox", @data_options= " {'mode':'flipbox', 'dateFormat':'dd/mm/YYYY' } ")
- @Html.ValidationMessageFor(model => model.ReleaseDate)
- </div>
Only note the @ character before every attribute and the _ (underscore) character instead of the - (dash) one for the composite words attributes.
Bye!