shapes.source String
The source of the shape image. Applicable when the type is set to "image"
.
Example - creating an image shape
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
layout: "tree",
shapes: [{
id: "1",
content: {
text: "Step 1"
}
}, {
id: "2",
content: {
text: "Step 2"
}
}, {
id: "3",
type: "image",
source: "https://demos.telerik.com/kendo-ui/html5-dashboard-sample-app/Content/Products/4.jpg"
}],
connections: [{
from: "1",
to: "2"
},{
from: "2",
to: "3"
}],
connectionDefaults: {
endCap: "ArrowEnd"
}
});
</script>