DiagramTagHelper

Example

Razor
<kendo-diagram>
    <connection-defaults></connection-defaults>
    <connections></connections>
    <connections-datasource></connections-datasource>
    <editable></editable>
    <hierarchical-datasource></hierarchical-datasource>
    <layout></layout>
    <pannable />
    <pdf></pdf>
    <selectable></selectable>
    <shape-defaults></shape-defaults>
    <shapes></shapes>
    <shape-template></shape-template>
</kendo-diagram>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
datasource-idStringThe data source id
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
as-moduleBoolean
auto-bindBooleanIf set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
has-client-componentBoolean
on-addStringFired when the user adds new shape or connection.The event handler function context (available via the this keyword) will be set to the widget instance.
on-cancelStringFired when the user clicks the "cancel" button in the popup window in case the item was added via a toolbar.
on-changeStringFired when an item is added or removed to/from the diagram.
on-clickStringFired when the user clicks on a shape or a connection.
on-data-boundStringFired when the widget is bound to data from dataDource and connectionsDataSource.The event handler function context (available via the this keyword) will be set to the widget instance.
on-dragStringFired when dragging shapes or connection.
on-drag-endStringFired after finishing dragging shapes or connection.
on-drag-startStringFired before starting dragging shapes or connection.
on-editStringFired when the user edits a shape or connection.
on-item-bounds-changeStringFired when the location or size of a shape are changed.
on-item-rotateStringFired when a shape is rotated.
on-mouse-enterStringFired when the mouse enters a shape or a connection.Will not fire for disabled items.
on-mouse-leaveStringFired when the mouse leaves a shape or a connection.Will not fire for disabled items.
on-panStringFired when the user pans the diagram.
on-removeStringFired when the user removes a shape or connection.
on-saveStringFired when the user saves a shape or a connection.
on-selectStringFired when the user selects one or more items.
on-tool-bar-clickStringFired when the user clicks an item in the toolbar.
on-zoom-endStringFired when the user changes the diagram zoom level.
on-zoom-startStringFired when the user starts changing the diagram zoom level.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
templateStringThe template which renders the content of the shape when bound to a dataSource. The names you can use in the template correspond to the properties used in the dataSource. For an example, refer to the dataSource topic below.
template-handlerStringThe template which renders the content of the shape when bound to a dataSource. The names you can use in the template correspond to the properties used in the dataSource. For an example, refer to the dataSource topic below.
template-idStringThe template which renders the content of the shape when bound to a dataSource. The names you can use in the template correspond to the properties used in the dataSource. For an example, refer to the dataSource topic below.
template-viewIHtmlContentThe template which renders the content of the shape when bound to a dataSource. The names you can use in the template correspond to the properties used in the dataSource. For an example, refer to the dataSource topic below.
themeStringThe diagram theme. This can be either a built-in theme or "sass". When set to "sass" the diagram will read the variables from a Sass-based theme.The supported values are: * "sass" - works only when a custom Sass theme is loaded in the page * "black" * "blueopal" * "bootstrap" * "bootstrap-v4" - works only with the Bootstrap-v4 Sass theme loaded in the page * "default" * "default-v2" - works only with the Default-v2 Sass theme loaded in the page * "fiori" * "flat" * "highcontrast" * "material" * "materialBlack" * "metro" * "metroblack" * "moonlight" * "nova" * "office365" * "silver" * "uniform"
zoomDoubleThe default zoom level of the Diagram in percentages.
zoom-maxDoubleThe maximum zoom level in percentages. The user will not be allowed to zoom in past this level.
zoom-minDoubleThe minimum zoom level in percentages. The user will not be allowed to zoom out past this level. You can see an example in zoomMax.
zoom-rateDoubleThe zoom step when using the mouse-wheel to zoom in or out.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support