Defines the fluent API for configuring DiagramEditableSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
DiagramEditableSettingsBuilder method.
public DiagramEditableSettingsBuilder(DiagramEditableSettings<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramEditableSettings<TShapeModel, TConnectionModel>
Container member.
protected DiagramEditableSettings<TShapeModel, TConnectionModel> Container { get; }
Methods
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ConnectionTemplate(string value)
The value for ConnectionTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ConnectionTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the connectiontemplate.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ConnectionTemplateHandler(string templateHandler)
The handler that returs the template for ConnectionTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ConnectionTemplateId(string templateId)
The ID of the template element for ConnectionTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ConnectionTemplateView(IHtmlContent templateView)
The view that contains the template for ConnectionTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
Specifies if the shapes and connections can be dragged.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Drag(Action<DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> for the drag setting.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> .
Specifies if the shapes and connections can be dragged.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Drag(bool enabled)
Enables or disables the drag option.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> .
Specifies if the shapes and connections can be removed.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Remove(bool value)
The value for Remove
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the look-and-feel of the shape resizing handles.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Resize(Action<DiagramEditableResizeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramEditableResizeSettingsBuilder<TShapeModel, TConnectionModel> for the resize setting.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the look-and-feel of the shape resizing handles.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Resize(bool enabled)
Enables or disables the resize option.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableResizeSettingsBuilder<TShapeModel, TConnectionModel> .
Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Rotate(Action<DiagramEditableRotateSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramEditableRotateSettingsBuilder<TShapeModel, TConnectionModel> for the rotate setting.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> .
Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Rotate(bool enabled)
Enables or disables the rotate option.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableRotateSettingsBuilder<TShapeModel, TConnectionModel> .
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplate(string value)
The value for ShapeTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the shapetemplate.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
Specifies the name of the editor template that contains a Template component, which defines the editors for the shape data item. The editor template must be added in the 'Views/Shared/EditorTemplates/' folder.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplateComponentName(string templateName)
The name of the Razor view editor template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
The current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplateHandler(string templateHandler)
The handler that returs the template for ShapeTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplateId(string templateId)
The ID of the template element for ShapeTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
Specifies the name of 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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplateName(string value)
The name of the Razor view editor template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
The current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ShapeTemplateView(IHtmlContent templateView)
The view that contains the template for ShapeTemplate
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Tools(Action<DiagramEditableSettingsToolFactory<TShapeModel, TConnectionModel>> configurator)
The DiagramEditableSettingsToolFactory<TShapeModel, TConnectionModel> for the tools setting.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> .