Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This event would request Kyvos to duplicate a widget card.

Code Block
languagejson
{
  "msgName": "kyvos.viewer.db.duplicateWidget",
  "payload": {
    "widgetId": "",
    "duplicateSheet" : false
  }
}

...

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

  2. This API requires a valid widget idID.

  3. Not This API is not applicable for GROUP_CARDS

  4. For DATA_CARD, you can choose to duplicate source sheet as well.

Panel
panelIconIdatlassian-note
panelIcon:note:
bgColor#DEEBFF

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
  • ‘duplicateSheet’ is false, only the widget will be duplicated.

Sample

Code Block
languagejson
{
  "msgName": "kyvos.viewer.db.duplicateWidget",
  "payload": {
    "widgetId": "dbwidget17291538965135127025035116481996",
    "duplicateSheet" : false
  }
}