VueJS Generators
GitHubNPMJSFiddleCodePen
develop
develop
  • Getting Started
  • Installation
  • Usage
    • Styling
  • Component
    • Schema
    • Model
    • Options
    • Events
  • Fields
    • Field Properties
      • Inside Buttons
    • Core Fields
      • checkbox
      • checklist
      • input
      • label
      • radios
      • select
      • submit
      • textArea
    • Optional Fields
      • cleave
      • dateTimePicker
      • googleAddress
      • image
      • masked
      • noUiSlider
      • pikaday
      • selectEx
      • rangeSlider
      • spectrum
      • staticMap
      • switch
      • vueMultiSelect
    • Custom Fields
  • Groups
  • Validation
    • Built in Validators
    • Custom Validators
    • Handling Validation Events
Powered by GitBook
On this page
  • Special properties of field
  • Usage
  • Image field with browse and preview
  • Image field without browse

Was this helpful?

  1. Fields
  2. Optional Fields

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

Property

Default

Accepted values

Description

autocomplete

none

Indicates whether the value of the control can be automatically completed by the browser.

browse

true

Boolean

If true, the file browser input field is visible.

placeholder

none

String

Placeholder text for input field

hideInput

false

Boolean

Hidden the link input field

preview

true

Boolean

If true, the preview is visible.

readonly

false

Boolean

If true, the input field is read only

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
}
PreviousgoogleAddressNextmasked

Last updated 6 years ago

Was this helpful?

see doc