Skip to content

Instantly share code, notes, and snippets.

@obiPlabon
Last active October 5, 2019 12:46
Show Gist options
  • Save obiPlabon/f802a63740f667bcec61f455fd9fa909 to your computer and use it in GitHub Desktop.
Save obiPlabon/f802a63740f667bcec61f455fd9fa909 to your computer and use it in GitHub Desktop.
List of some Visual Composer JS events
// Fixed named events
var _events = [
"vc:access:initialize",
"vc:access:backend:ready",
"shortcodes:vc_row:add:param:name:parallax",
"shortcodes:vc_row:update:param:name:parallax",
"shortcodes:vc_single_image:sync",
"shortcodes:vc_single_image:add",
"shortcodes:add:param:type:el_id",
"click:media_editor:add_image",
"app.render",
"vcPointer:show",
"vcPointer:close",
"shortcodes:add",
"shortcodes:sync",
"shortcodes:destroy",
"vc:backend_editor:show",
"vc:backend_editor:switch",
];
// Dynamic named events
var _dEvents = [
"shortcodes", // Model, Event Type
"shortcodes:shortcodeTag", // Model, Event Type {add, update, destroy}
"shortcodes:eventType", // Model
"shortcodes:shortcodeTag:eventType", // Model
"shortcodes:eventType:param", // shortcodeModel, params[paramSettings.param_name], paramSettings
"shortcodes:shortcodeTag:eventType:param", // shortcodeModel, params[paramSettings.param_name], paramSettings
"shortcodes:eventType:param:type:paramSettings.type", //shortcodeModel, params[paramSettings.param_name], paramSettings
"shortcodes:shortcodeTag:eventType:param:type:paramSettings.type", // shortcodeModel, params[paramSettings.param_name], paramSettings
"shortcodes:eventType:param:name:paramSettings.param_name", // shortcodeModel, params[paramSettings.param_name], paramSettings
"shortcodes:shortcodeTag:eventType:param:name:paramSettings.param_name", // shortcodeModel, params[paramSettings.param_name], paramSettings
];
/**
* Find more events on files under "js_composer/assets/js/dist"
* Specially in the following files:
* 1. backend-actions.min.js
* 2. js_composer_front.min.js
* 3. backend.min.js
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment