Skip to content

HorizontalFormFieldTagHelper

StrutTower edited this page Nov 18, 2023 · 3 revisions

Usage

<hrFormField asp-for="Property"></hrFormField>
<hrFormField asp-for="DateProperty" template="Date"></hrFormField>
<!--template="Date" will render the input as a input[type="date"] instead of the default input[type="datetime-local"]-->

Attributes

Name Required Data Type Description
asp-for Required ModelExpression
template Optional string Key name the HtmlRender that will be used for rendering the input
label-col Optional string (default: "col-md-4 col-lg-3") Set the Bootstrap column class for the label
input-col Optional string (default: "col-md-7 col-lg-6") Set the Bootstrap column class for the input
input-css Optional string Sets any custom classes on the input element