cut

Cuts the currently selected diagram items to an internal clipboard.

Example - cut and paste Diagram elements

<button id="cutBtn">Cut Selected Elements</button>
<button id="pasteBtn">Paste</button>
<div id="diagram"></div>
<script>
  $("#cutBtn").on("click", function(){
    var diagram = $("#diagram").getKendoDiagram();
    diagram.cut();
  });
  $("#pasteBtn").on("click", function(){
    var diagram = $("#diagram").getKendoDiagram();
    diagram.paste();
  });
  $("#diagram").kendoDiagram({
    shapes:[
      {
        id:"1",
        content:{
          text: "State 1"
        },
        x: 20,
        y: 20
      },
      {
        id:"2",
        content: {
          text: "State 2"
        },
        x: 160,
        y: 20
      }
    ],
    connections:[
      {
        from: "1",
        to: "2"
      }
    ]
  });
</script>
In this article