Registers the controls in the package as web components.
Namespace: MindFusion.Diagramming
File: WebComponents.js
JavaScript
![]() |
---|
function register () |
Call this method to register the control classes from Diagramming package as web components. After registration, the browser instantiates corresponding classes for following tags in HTML code:
HTML | JS Class |
---|---|
<mindfusion-diagramview> | |
<mindfusion-overview> | |
<mindfusion-nodelistview> | |
<mindfusion-ruler> | |
<mindfusion-zoomcontrol> |
You can get a reference to objects created by the browser by calling the find method of corresponding class with id attribute's value as argument.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |