wv-field-image
Purpose
<wv-field-image/>
. Provides the ability to render the image field type of an Erp Entity. It uploads files to the server based on the configuration - in the database or on local storage. Have in mind that server file and media paths require a file controller to be access, usually you need to add "/fs" controller before the path.
Properties
Important: All <wv-field-*>
helpers inherit a "base tag helper" properties. In the following list are presented only the properties that this tag helper adds or alters. Not all base tag helper properties can be implemented by this tag helper too.
name | description |
---|---|
accept |
object type: default value: is required: string of the accepted file extensions. For reference you can check out the html attribute definition page. |
height |
object type: default value: is required: the requested image height. The server will automatically resize and cache the new copy of the image |
resize-action |
object type: default value: is required: the resize action type that needs to be taken when both width and height are set. Options are: Pad, BoxPad, Crop, Min, Max, Stretch. For more information please check the ImageProcessor reference page |
text-remove |
object type: default value: is required: the text for the remove image link |
text-select |
object type: default value: is required: the text for the select image link |
width |
object type: default value: is required: the requested image width. The server will automatically resize and cache the new copy of the image |
Example
<wv-field-image value="@value"></wv-field-image>