gpfup_cropper_options (JS)

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Disable rotating
  5. Since

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.