Defines the fluent API for configuring the DiagramEditableSettings settings.
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
public DiagramEditableSettingsBuilder(DiagramEditableSettings<TShapeModel, TConnectionModel> settings)
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 that configures the connection template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
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>
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 value)
The value that configures the connection template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
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 value)
The value that configures the connection template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies the name of the connection editor template.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> ConnectionTemplateName(string value)
The name of the Razor view editor template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
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(MvcHtmlString value)
The value that configures the connection template.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies if the shapes and connections can be dragged.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Drag(Action<DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the drag settings.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies if the shapes and connections can be dragged.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Drag(bool enabled)
The value that enables or disables the Drag option.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies if the shapes and connections can be removed.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Remove(bool value)
The value that enables or disables the Remove option.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Defines the look-and-feel of the resizing handles.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Resize(Action<DiagramEditableResizeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the resize settings.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Defines the look-and-feel of the resizing handles.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Resize(bool enabled)
The value that enables or disables the Resize option.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies rotate settings of the shapes.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Rotate(Action<DiagramEditableRotateSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the rotate settings.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies rotate settings of the shapes.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Rotate(bool enabled)
The value that enables or disables the Rotate option.
Returns:DiagramEditableSettingsBuilder<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 that configures the shapetemplate.
Returns:DiagramEditableSettingsBuilder<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<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the shapetemplate.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
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>
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 value)
The value that configures the shapetemplate.
Returns:DiagramEditableSettingsBuilder<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> ShapeTemplateId(string value)
The value that configures the shapetemplate.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
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>
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(MvcHtmlString value)
The value that configures the shapetemplate.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>
Specifies the toolbar tools.
public DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel> Tools(Action<DiagramEditableSettingsToolFactory<TShapeModel, TConnectionModel>> configurator)
The action that configures the tools.
Returns:DiagramEditableSettingsBuilder<TShapeModel, TConnectionModel>