Set manually the field in State 'error'.
If the Field is used within an EditForm, an EditContext will be cascaded, and the Error and Validation will be manage automatically by the EditContext.
Type | Default Value |
---|---|
bool | false |
<NVFieldTextArea Error Margin=". . 3"/>
<NVFieldTextArea
Error
Message="This is a hint"
Validation="An error occur."
/>
Label define the label value of the Textarea Field.
Type | Default Value |
---|---|
string | null |
<NVFieldTextArea Name="labelSample" Label="This is a label"/>
Message define a 'hint ' message for the Textarea Field.
Type | Default Value |
---|---|
string | null |
<NVFieldTextArea Message="This is a message"/>
Name define the unique name for a field.
It will add name and id attributes of the input. If there is a label will also add the for attribute to the label.
When for is provided to a label element and when an id is provided, with the same value, to an input element, the label click will focus the input.
If an EditContext is provided by the EditForm, the FieldIdentifier.FieldName will be used.
If you don't pass a this parameter, an autoName will be generated and used within attributes of input and label. (since v1.0-rc.6)
Type | Default Value |
---|---|
string | null |
<NVFieldTextArea Name="uniqueName" Label="This is a label"/>
Add content after the 'texarea' element.
Type | Default Value |
---|---|
RenderFragment | null |
<NVFieldTextArea Name="FieldAfter" Label="FieldAfter">
<NVFieldAfter>
<NVIcon Name="search"/>
</NVFieldAfter>
</NVFieldTextArea>
Add content before the 'texarea' element.
Type | Default Value |
---|---|
RenderFragment | null |
<NVFieldTextArea Name="FieldBefore" Label="FieldBefore">
<NVFieldBefore>
<NVIcon Name="search"/>
</NVFieldBefore>
</NVFieldTextArea>
FieldLabel define the content of the label of the Textarea Field.
Type | Default Value |
---|---|
RenderFragment | null |
<NVFieldTextArea Name="FieldLabel">
<NVFieldLabel>
This is a <NVBlock Tag="strong" TextColor="error">label</NVBlock>
</NVFieldLabel>
</NVFieldTextArea>
When you need a more complex (with html markups) message, you can use FieldMessage RenderFragment.
Type | Default Value |
---|---|
RenderFragment | null |
<NVFieldTextArea>
<NVFieldMessage>This is a message with <strong>markups</strong></NVFieldMessage>
</NVFieldTextArea>
When you need a more complex (with html markups) Validation message, you can use FieldValidation RenderFragment.
It will override the Validation message, coming from Model/EditContext or from Validation Parameter.
Type | Default Value |
---|---|
RenderFragment | null |
<NVFieldTextArea Error>
<NVFieldValidation>This is a <strong>validation</strong> message</NVFieldValidation>
</NVFieldTextArea>
Placeholder define the placeholder value of the Textarea Field.
Type | Default Value |
---|---|
string | null |
<NVFieldTextArea Placeholder="This is a placeholder"/>
Set the Field as required. This adds an * after the label.
Type | Default Value |
---|---|
bool | false |
<NVFieldTextArea Name="Required" Label="Required" Required />
Rows let us to change to number of lines display by the textarea.
Type | Default Value |
---|---|
string | 6 |
<NVFieldTexarea Row="2" Value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et ex nunc. Nulla facilisi. Curabitur massa mauris, malesuada vel ipsum ac, varius suscipit nunc. Mauris ac condimentum justo. Nulla congue sem vel ante volutpat, sed semper quam varius. Nam et lectus sit amet arcu pharetra sodales. Donec mi neque, lacinia ut gravida vel, fringilla in dui. Nunc non velit neque." />