- `content`**[String][1]?** Content of the component (not escaped) which will be appended before children rendering. Default: `''`
- `icon`**[String][1]?** Component's icon, this string will be inserted before the name (in Layers and badge), eg. it can be an HTML string '<iclass="fa fa-square-o"></i>'. Default: `''`
- `script`**([String][1] \| [Function][6])?** Component's javascript. More about it [here][7]. Default: `''`
- `script-export`**([String][1] \| [Function][6])?** You can specify javascript available only in export functions (eg. when you get the HTML).
If this property is defined it will overwrite the `script` one (in export functions). Default: `''`
- `traits`**[Array][4]<([Object][2] \| [String][1])>?** Component's traits. More about it [here][8]. Default: `['id', 'title']`
- `propagate`**[Array][4]<[String][1]>?** Indicates an array of properties which will be inhereted by all NEW appended children.
For example if you create a component likes this: `{ removable: false, draggable: false, propagate: ['removable', 'draggable'] }`
@ -92,12 +94,29 @@ component.is('image')
Returns **[Boolean][3]**
## props
Return all the propeties
Returns **[Object][2]**
## index
Get the index of the component in the parent collection.
Returns **[Number][10]**
## setDragMode
Change the drag mode of the component.
To get more about this feature read: [https://github.com/artf/grapesjs/issues/1936][11]