[Cropper Mobile] Can't set options

[Cropper Mobile] Can't set options

  
Forge Component
(2)
Published on 2 Sep by OutSystems Labs
2 votes
Published on 2 Sep by OutSystems Labs

Hi,

If I add any options I have an error when calling the cropper

JSON Parse error: Expected '}'




Even if I put "{aspectRatio: 1}" in Options...

What is a proper syntax for this?


PS: I use it in v10 mobile app with phone theme.


Thank you,

Nick



Solution

Hi Mykola,

Have you tried like this:  "{"viewMode":3,"aspectRatio":"1/1"}"   ?
Try it on an online json formatter and validator.

Regards

Solution

Hi Franisco,

Yes it works with double-double-quotes as it is a an expression field: 

"{""aspectRatio"":1,""viewMode"":1, ""scalable"":false}"

Thanks