A web component that manages the user component that was added via css-grid
. This component lets the user to edit css grid properties as well component specific properties that it will need in a particular context.
bower install --save pancake-cms-row-adder
name | type | description | example value |
---|---|---|---|
el-name | String | The name of the component that needs to be rendered by row-adder element |
demo-el or registration-card |
in-edit-mode | Boolean | Are we rendering row-adder in edit mode or not. This element shows a lot of options when in edit mode |
true or false |
component-properties | Object | This is the main part of row-adder element. Its main purpose is to let users modify the properties given in this object. |
Please refer the section component-properties for more information on its structure |
The element triggers a component-modified
event when anything changes in its properties. This happens when the user changes anything in the properties dialog.
The most basic example of this object is as follows
[
{
"name" : "display",
"value" : [
{
"description" : "The start column location of this component",
"name" : "gridColumnStart",
"type" : "text",
"value" : "1"
}, {
"description" : "The end column location of this component",
"name" : "gridColumnEnd",
"type" : "text",
"value" : "12"
}, {
"description" : "The start row location of this component",
"name" : "gridRowStart",
"type" : "text",
"value" : ""
}, {
"description" : "The end row location of this component",
"name" : "gridRowEnd",
"type" : "text",
"value" : ""
}
]
},
{
name: 'Component Properties',
value: [
{
name: 'productName',
value: 'Some Product Name',
type: 'text',
description: 'The name of the product that needs to be displayed'
}
]
}
]