API: kyvos.viewer.db.duplicateWidget
This event would request Kyvos to duplicate a widget card.
{
"msgName": "kyvos.viewer.db.duplicateWidget",
"payload": {
"widgetId": "",
"duplicateSheet" : false
}
}
Points to consider
This API will only work in the design mode.
This API requires a valid widget ID.
This API is not applicable for GROUP_CARDS
For DATA_CARD, you can duplicate source sheet.
Note
For DATA_CARD,
If the 'duplicateSheet' key is not provided, the default behavior will be true, and the source sheet will be duplicated.
If the value of ‘duplicateSheet’ is false, only the widget will be duplicated.
Sample
{
"msgName": "kyvos.viewer.db.duplicateWidget",
"payload": {
"widgetId": "dbwidget17291538965135127025035116481996",
"duplicateSheet" : false
}
}
Copyright Kyvos, Inc. All rights reserved.