clear
Clears the content of the diagram.
Example - clear Diagram content
<button id="clearBtn">Clear Diagram</button>
<div id="diagram"></div>
<script>
$("#clearBtn").on("click", function(){
var diagram = $("#diagram").getKendoDiagram();
diagram.clear();
});
$("#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>