latest version

Image upload

Image upload option type.

Config

Name Type Default Description
edit boolean true Enable or disable capability upload or remove current option image.
pointer boolean true Enable or disable image pointer.

DefaultValue

TODO:
  • Can user set default src?
Name Type Default Description
positionX number 50 Pointer position on X axis in %.
positionY number 50 Pointer position on Y axis in %.

Minimal Usage

{
  id: "image",
  type: "imageUpload"
}

Usage

{
  id: "image",
  type: "imageUpload"
  config: {
    edit: device === "desktop",
  },
  defaultValue: {
    positionX: 25,
    positionX: 25,
  }
}