image

This is an image input field. You can set an URL of image, or upload from computer. In this case the value of model will be an base64 encoded string.

Special properties of field

Usage

Image field with browse and preview

{
    type: "image",
    label: "Avatar",
    model: "avatar",
    required: true
}

Image field without browse

{
    type: "image",
    label: "Avatar",
    model: "avatar",
    required: true,
    browse: false
    preview: true
}

Last updated