wv-section
Purpose
<wv-section/>
. Groups fields in a section or a card, with the integrated option to collapse
Properties
name | description |
---|---|
body-class |
object type: default value: is required: Additional CSS classes to be added to the body of the element |
class |
object type: default value: is required: Additional CSS classes to be added to the element |
field-mode |
object type: default value: is required: Does not have effect on the section element, but on the nested fields as it could be inherited by default. Options are: Undefined, Form, Display, InlineEdit, Simple |
id |
object type: default value: is required: HTML Id of the generated element |
is-card |
object type: default value: is required: Whether to render the element as a card |
is-collapsable |
object type: default value: is required: Add the option of the element's body to be collapsed by clicking on its title |
is-collapsed |
object type: default value: is required: Sets the initial collapse status |
label-mode |
object type: default value: is required: Does not have effect on the section element, but on the nested fields as it could be inherited by default. Options: Undefined, Stacked, Horizontal, Hidden |
title |
object type: default value: is required: The section title |
title-tag |
object type: default value: is required: The HTML tag for wrapping the title text |
Example
<wv-section class="mt-4" label-mode="@LabelRenderMode.Hidden">
<wv-row>
<wv-column span="6">
<wv-field-text label-text="Name" value="@Model.Name" name="Name" required="true"></wv-field-text>
</wv-column>
<wv-column span="6">
<wv-field-text label-text="Label" value="@Model.Label" name="Label" required="true"></wv-field-text>
</wv-column>
</wv-row>
</wv-section>