Document toolboxDocument toolbox

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

  1. This API will only work in the design mode.

  2. This API requires a valid widget ID.

  3. This API is not applicable for GROUP_CARDS

  4. 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.