DiagramShapeDefaultsEditableSettingsToolFactory
Methods
Custom()
Adds an item for a custom action.
RETURNS
Returns a with the available configuration options.
Example
Razor
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Editable(e => e.Tools(tt => tt.Custom().Name("settingsBtn").Text("User settings").Type("button")))
)
)
Edit()
Adds an item for the edit action.
RETURNS
Returns a with the available configuration options.
Example
Razor
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Editable(e => e.Tools(tt => tt.Edit()))
)
)
Delete()
Adds an item for the delete action.
RETURNS
Returns a with the available configuration options.
Example
Razor
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Editable(e => e.Tools(tt => tt.Delete()))
)
)
RotateClockwise()
Adds an item for the rotateClockwise action.
RETURNS
Returns a with the available configuration options.
Example
Razor
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Editable(e => e.Tools(tt => tt.RotateClockwise()))
)
)
RotateAnticlockwise()
Adds an item for the rotateAnticlockwise action.
RETURNS
Returns a with the available configuration options.
Example
Razor
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Editable(e => e.Tools(tt => tt.RotateAnticlockwise()))
)
)