From 898660762145d60c3aae099f11ac40a8517e8c75 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 30 Nov 2017 13:54:37 +0100 Subject: [PATCH] Update Events doc --- src/editor/index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/editor/index.js b/src/editor/index.js index bf67fa384..e9e133b5b 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -7,16 +7,19 @@ * ``` * * # Available Events + * * ## Components * * `component:add` - Triggered when a new component is added to the editor, the model is passed as an argument to the callback - * * `component:update` - Triggered when a component is, generally, updated (moved, styled, etc.) - * * `component:update:{propertyName}` - Listen any property change - * * `component:styleUpdate` - Triggered when the style of the component is updated - * * `component:styleUpdate:{propertyName}` - Listen for a specific style property change - * * `component:selected` - New component selected + * * `component:update` - Triggered when a component is updated (moved, styled, etc.), the model is passed as an argument to the callback + * * `component:update:{propertyName}` - Listen any property change, the model is passed as an argument to the callback + * * `component:styleUpdate` - Triggered when the style of the component is updated, the model is passed as an argument to the callback + * * `component:styleUpdate:{propertyName}` - Listen for a specific style property change, the model is passed as an argument to the callback + * * `component:selected` - New component selected, the selected model is passed as an argument to the callback * ## Blocks * * `block:add` - New block added * * `block:remove` - Block removed + * * `block:drag:start` - Started dragging new block, Event object is passed as an argument + * * `block:drag:stop` - Block dropped inside canvas, the new model is passed as an argument to the callback * ## Assets * * `asset:add` - New asset added * * `asset:remove` - Asset removed