wv-field-* base properties
Purpose
All field tag helpers inherit this base field's properties. Some of them can be overrided or not used by the specific field though. Check the relevant tag helper document page for more information.
Properties
name | description |
---|---|
access |
object type: default value: is required: Sets whether the user can interact or view that value of the field. Options are: Undefined, Full, FullAndCreate, ReadOnly, Forbidden |
access-denied-message |
object type: default value: is required: Overrides the default access denied message, presented to the user when he/she doesn't have access to the field value |
api-url |
object type: default value: is required: Overrides the default API URL call, when InlineEdit a field |
autocomplete |
object type: default value: is required: Ability to set the autocomplete attribute of the field's input, used by the browsers to prefill form data. |
class |
object type: default value: is required: A CSS class to be added to the general classes of the field. |
field-id |
object type: default value: is required: Field Id is used when initializing scripts |
description |
object type: default value: is required: Presents a description text after the field's input |
default-value |
object type: default value: is required: Depends on the field type. |
empty-value-message |
object type: default value: is required: Overrides the default message, when the field value is null |
entity-name |
object type: default value: is required: Used in InlineEdit mode in order to set the entity of the altered record Id |
id |
object type: default value: is required: Html ID you may need to set to the rendered field |
init-errors |
object type: default value: is required: If any init errors are set, the field will render the label and an error message. Usually used for showing non validation system errors |
label-error-text |
object type: default value: is required: Will render an error icon next to the label text, with the provided text as a tooltip |
label-help-text |
object type: default value: is required: Will render a help icon next to the label text, with the provided text as a tooltip |
label-mode |
object type: default value: is required: Sets the rendering mode of the label. Options: Undefined, Stacked, Horizontal, Hidden |
label-text |
object type: default value: is required: The text rendered as a field label |
label-warning-text |
object type: default value: is required: Will render a warning icon next to the label text, with the provided text as a tooltip |
locale |
object type: default value: is required: If set, this will initialize the |
mode |
object type: default value: is required: Defines how the field will be rendered. Options are: Undefined, Form, Display, InlineEdit, Simple |
name |
object type: default value: is required: Will set the name attribute of the html element |
placeholder |
object type: default value: is required: Sets the placeholder attribute of the field's input |
record-id |
object type: default value: is required: Used in InlineEdit mode and send to the API handler which looks for the field name as record property and alters it |
required |
object type: default value: is required: Present a red asterix sign before the field's label |
validation-errors |
object type: default value: is required: If any validation errors are set, the field will render them at its bottom. Used for form validation messages towards the end user. |
value |
object type: default value: is required: Depends on the field type. |
Example
<wv-field-autonumber id="my-drawer" title="This is a drawer">...</wv-field-autonumber>