Need help in the process of creating your own WordPress theme?
Image upload option type.
| 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. |
| Name | Type | Default | Description |
|---|---|---|---|
| positionX | number |
50 |
Pointer position on X axis in %. |
| positionY | number |
50 |
Pointer position on Y axis in %. |
{
id: "image",
type: "imageUpload"
}
{
id: "image",
type: "imageUpload"
config: {
edit: device === "desktop",
},
defaultValue: {
positionX: 25,
positionX: 25,
}
}