From 8b566deeae03588e0ee1348affb3a1c92653cfdb Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 17 Nov 2018 14:38:12 +0100 Subject: [PATCH] Update components events --- src/editor/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/index.js b/src/editor/index.js index 085e94a4b..c381fdee0 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -18,6 +18,8 @@ * ``` * * ### Components + * * `component:create` - Component is created (only the model, is not yet mounted in the canvas) + * * `component:mount` - Component is monted to an element and rendered in canvas * * `component:add` - Triggered when a new component is added to the editor, the model is passed as an argument to the callback * * `component:remove` - Triggered when a component is removed, the model is passed as an argument to the callback * * `component:clone` - Triggered when a new component is added by a clone command, the model is passed as an argument to the callback