DiagramEditableSettingsToolFactory

Methods

Custom()

Adds a custom command in the toolbar.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.Custom().Name("settingsBtn").Text("User settings").Type("button")))
             )
             

Edit()

Adds an item for the edit action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.Edit()))
             )
             

CreateShape()

Adds an item for the create shape action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.CreateShape()))
             )
             

CreateConnection()

Adds an item for the create connection action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.CreateConnection()))
             )
             

Undo()

Adds an item for the undo action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.Undo()))
             )
             

Redo()

Adds an item for the redo action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.Redo()))
             )
             

RotateClockwise()

Adds an item for the rotateClockwise action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.RotateClockwise()))
             )
             

RotateAnticlockwise()

Adds an item for the rotateAnticlockwise action.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Editable(e => e.Tools(tt => tt.RotateAnticlockwise()))
             )