gpfup_cropper_options (JS)
Description
Filter the options/properties that are sent to vue-advanced-cropper.
Usage
gform.addFilter( 'gpfup_cropper_options', my_custom_function );
Parameters
options object
Options to send to vue-advanced-cropper. Additionally,
enableRotate
can be included as a property to disable rotation of upload images..formId int
The current form ID
fieldId object
The current uploader field ID
Examples
Disable rotating
gform.addFilter('gpfup_cropper_options', function(options) {
options.enableRotate = false;
return options;
});
Since
This filter is available since Gravity Forms File Upload Pro 1.0-beta-2.0.
enableRotate
was added as an available property for options
in 1.4.