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? -

asp.net ajax - Jquery scroll to element just goes to top of page -