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 design mode.
This API requires a valid widget id.
Not applicable for GROUP_CARDS
For DATA_CARD, you can choose to duplicate source sheet as well.
Note
For DATA_CARD,
If the duplicateSheet key is not provided, the default behavior will be true, and the source sheet will also 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 } }