New to Kendo UI for jQueryStart a free 30-day trial

Specifies the toolbar tools. Provides all options supported for toolbar.items. The predefined tools are:

  • "edit" - The selected item can be edited.
  • "delete" - The selected items can be deleted.
  • "rotateClockwise" - The selected items can be rotated clockwise. The default rotation value is 90 degree.
  • "rotateAnticlockwise" - The selected items can be rotated anticlockwise. The default rotation value is 90 degree.
<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      id: "1",
      content: {
        text: "Monday"
      },
      editable: {
        tools: [{
          name: "rotateClockwise"
        }, {
          name: "rotateAnticlockwise"
        }]
      },
      x: 100,
      y: 20
    }, {
      id: "2",
      content: {
        text: "Tuesday"
      },
      editable: {
        tools: [{
          name: "delete"
        }, {
          name: "rotateClockwise"
        }, {
          name: "rotateAnticlockwise"
        }]
      },
      x: 250,
      y: 20
    }, {
      id: "3",
      content: {
        text: "Wednesday"
      },
      x: 250,
      y: 200
    }],
    connections: [{
      from: "1",
      to: "2"
    },{
      from: "2",
      to: "3"
    }],
    connectionDefaults: {
      endCap: "ArrowEnd"
    }
  });
</script>
<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [
      {
        editable: {
          tools: [{
            type: "button",
            text: "Set Content",
            click: function() {
              var selected = $("#diagram").getKendoDiagram().select();
              var content = $("#content").val();
              for (var idx = 0; idx < selected.length; idx++) {
                selected[idx].content(content);
              }
            }
          }, {
            template: "<input id='content' class='k-textbox' value='Foo' />"
          }]
        },
        content: {
          text: "Shape 1"
        },
        x: 100,
        y: 100
      }
    ]
  });
</script>

The name of the tool. The built-in tools are edit, delete, rotateClockwise, and rotateAnticlockwise.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        x: 100,
        y: 100,
        content: { text: "Shape 1" },
        editable: {
            tools: [{
                name: "edit"
            }, {
                name: "delete"
            }, {
                name: "rotateClockwise"
            }]
        }
    }]
});
</script>

The step of the rotateClockwise and rotateAnticlockwise tools.

Default: 90

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        x: 100,
        y: 100,
        content: { text: "Shape 1" },
        editable: {
            tools: [{
                name: "rotateClockwise",
                step: 45
            }, {
                name: "rotateAnticlockwise",
                step: 45
            }]
        }
    }]
});
</script>