wv-form
Purpose
<wv-form/>
. Presents a form with an ability to autogenerate a proper antiforgery token.
Properties
name | description |
---|---|
accept-charset |
object type: default value: is required: Html |
action |
object type: default value: is required: Html |
antiforgery |
object type: default value: is required: If true adds a antiforgery hidden input with its proper value so this form can be submitted towards a Razor Page |
autocomplete |
object type: default value: is required: Html |
enctype |
object type: default value: is required: Html |
id |
object type: default value: is required: Html ID you may need to set to the rendered element |
label-mode |
object type: default value: is required: How the labels of any wrapped fields should be presented. Useful in order to set this option only on when place. Inherited by the wrapped fields. |
method |
object type: default value: is required: Html |
mode |
object type: default value: is required: How any wrapped fields should be presented. Useful in order to set this option only on when place. Inherited by the wrapped fields. |
name |
object type: default value: is required: Html |
novalidate |
object type: default value: is required: Html |
target |
object type: default value: is required: Html |
validation |
object type: default value: is required: Helps to present any validation messages within the form to the end user |
Example
<wv-form name="ManageRecord" validation="Model.Validation" label-mode="Stacked" mode="Form" autocomplete="false">
<wv-row>
<wv-column span="6">
<wv-field-checkbox label-text="Enabled" value="@Model.Enabled" name="Enabled" text-true="enable this schedule plan"></wv-field-checkbox>
</wv-column>
<wv-column span="6">
<wv-field-guid label-text="Id" value="@Model.Id" access="ReadOnly" name="Id"></wv-field-guid>
</wv-column>
</wv-row>
</wv-form>