javascript - Croppie: dynamically set option like enforceBoundary? -


using croppie want dynamically set option, can make toggle enabling , disabling enforceboundary. initial code:

var basic = $('#demo-basic').croppie({     viewport: {         width: 150,         height: 200     },     enforceboundary: true, }); basic.croppie('bind', {     url: 'demo/cat.jpg',     points: [77,469,280,739] }); //on button click basic.croppie('result', 'html').then(function(html) {     // ... }); 

how can change enforceboundary after has been instantiated?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -