Kendo UI DiagramEditableSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramEditableSettings<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramEditableSettings<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramEditableSettings()
Properties
Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.
public string ConnectionTemplate { get; set; }
The handler that returns the template used for ConnectionTemplate
public string ConnectionTemplateHandler { get; set; }
The id of the script element used for ConnectionTemplate
public string ConnectionTemplateId { get; set; }
Diagram member.
public Diagram<TShapeModel, TConnectionModel> Diagram { get; set; }
Drag
DiagramEditableDragSettings<TShapeModel, TConnectionModel>
Specifies if the shapes and connections can be dragged.
public DiagramEditableDragSettings<TShapeModel, TConnectionModel> Drag { get; }
A set of settings to configure the Diagram behavior when the user attempts to: edit, delete or create shapes and connections.; drag shapes.; resize shapes. or rotate shapes..
public bool? Enabled { get; set; }
Gets or sets the HasHandlerEditor.
public bool HasHandlerEditor { get; set; }
Specifies if the shapes and connections can be removed.
public bool? Remove { get; set; }
Resize
DiagramEditableResizeSettings<TShapeModel, TConnectionModel>
Defines the look-and-feel of the shape resizing handles.
public DiagramEditableResizeSettings<TShapeModel, TConnectionModel> Resize { get; }
Rotate
DiagramEditableRotateSettings<TShapeModel, TConnectionModel>
Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.
public DiagramEditableRotateSettings<TShapeModel, TConnectionModel> Rotate { get; }
Gets or sets the ShapeEditorHtml.
public string ShapeEditorHtml { get; set; }
Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.
public string ShapeTemplate { get; set; }
The handler that returns the template used for ShapeTemplate
public string ShapeTemplateHandler { get; set; }
The id of the script element used for ShapeTemplate
public string ShapeTemplateId { get; set; }
Gets or sets the ShapeTemplateName.
public string ShapeTemplateName { get; set; }
Tools
List<DiagramEditableSettingsTool<TShapeModel, TConnectionModel>>
Specifies the toolbar tools. Supports all options supported by the toolbar.items property. Predefined tools are: "edit" - The selected item can be edited.; "createShape" - Adds an empty shape data item and a popup window is displayed.; "createConnection" - Adds an empty connection data item and a popup window is displayed.; "undo" - Undoes the previous action.; "redo" - Executes again the previously undone action.; "rotateClockwise" - The selected items can be rotated clockwise. The default rotation value is 90 degree. or "rotateAnticlockwise" - The selected items can be rotated anticlockwise. The default rotation value is 90 degree..
public List<DiagramEditableSettingsTool<TShapeModel, TConnectionModel>> Tools { get; set; }
Methods
Serialize current instance to Dictionary
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()