Artur Arseniev
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
3 deletions
-
packages/core/src/block_manager/model/Block.ts
-
packages/core/src/dom_components/model/Component.ts
-
packages/core/src/style_manager/model/Sector.ts
|
|
|
@ -62,7 +62,7 @@ export interface BlockProperties extends DraggableContent { |
|
|
|
|
|
|
|
/** |
|
|
|
* @property {String} label Block label, eg. `My block` |
|
|
|
* @property {String|Object} content The content of the block. Might be an HTML string or a [Component Defintion](/modules/Components.html#component-definition) |
|
|
|
* @property {String|Object} content The content of the block. Might be an HTML string or a [Component Definition](/modules/Components.html#component-definition) |
|
|
|
* @property {String} [media=''] HTML string for the media/icon of the block, eg. `<svg ...`, `<img ...`, etc. |
|
|
|
* @property {String} [category=''] Block category, eg. `Basic blocks` |
|
|
|
* @property {Boolean} [activate=false] If true, triggers the `active` event on the dropped component. |
|
|
|
|
|
|
|
@ -95,7 +95,7 @@ export const keyUpdateInside = ComponentsEvents.updateInside; |
|
|
|
* @property {String} [name=''] Name of the component. Will be used, for example, in Layers and badges |
|
|
|
* @property {Boolean} [removable=true] When `true` the component is removable from the canvas, default: `true` |
|
|
|
* @property {Boolean|String|Function} [draggable=true] Indicates if it's possible to drag the component inside others. |
|
|
|
* You can also specify a query string to indentify elements, |
|
|
|
* You can also specify a query string to identify elements, |
|
|
|
* eg. `'.some-class[title=Hello], [data-gjs-type=column]'` means you can drag the component only inside elements |
|
|
|
* containing `some-class` class and `Hello` title, and `column` components. In the case of a function, target and destination components are passed as arguments, return a Boolean to indicate if the drag is possible. Default: `true` |
|
|
|
* @property {Boolean|String|Function} [droppable=true] Indicates if it's possible to drop other components inside. You can use |
|
|
|
|
|
|
|
@ -24,7 +24,7 @@ export interface SectorProperties { |
|
|
|
* @property {String} id Sector id, eg. `typography` |
|
|
|
* @property {String} name Sector name, eg. `Typography` |
|
|
|
* @property {Boolean} [open=true] Indicates the open state. |
|
|
|
* @property {Array<Object>} [properties=[]] Indicate an array of Property defintions. |
|
|
|
* @property {Array<Object>} [properties=[]] Indicate an array of Property definitions. |
|
|
|
*/ |
|
|
|
export default class Sector extends Model<SectorProperties> { |
|
|
|
em: EditorModel; |
|
|
|
|