Skip to main content

Filter: gravityview-inline-edit/js-settings

Modify the settings passed to the x-editable script

Parameters

NameTypeDescription
$js_settingsarrayJavaScript settings for inline edit
↳ $modestringEditing mode. Options: "popup" or "inline". Default: "popup"
↳ $buttonsstringHTML of the Update/Cancel buttons
↳ $containerstringWhen using popup $mode, jQuery selector used to attach the popup container. Default: "body"
↳ $showbuttonsstring|boolWhere to show buttons. Form without buttons is auto-submitted. Options are "top", "bottom", "left", "right", or false. Default: "bottom"
↳ $onblurstringAction when user clicks outside the inline edit form container. Options are "cancel", "submit", "ignore". Setting ignore allows to have several containers open. Default: "cancel"
↳ $showinputsbool|stringjQuery selectors for which inputs to show without clicking. NOTE: onblur must be set to "ignore".
$item_idarrayArray with 'form_id' key set for Form ID, or 'view_id' key set for View ID currently being displayed

See Also

Since

  • 1.0
  • 1.3: Added $item_id parameter

Source

Defined in includes/class-gravityview-inline-edit-scripts.php at line 186