File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
KB-Samples/LargeDiagram/Components/Pages Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2020
2121 <!-- Diagram Section -->
2222 <div id =" diagram-space" style =" flex-grow : 1 ; width : 1200px ;" >
23- <SfDiagramComponent Height =" 700px" @ref =" @diagram" @bind-Nodes =" @nodes " @bind-Connectors =" @connectors " Created =" Oncreate " EnableChunkMessages =" true" GetCustomTool =" GetCustomTool" >
23+ <SfDiagramComponent Height =" 700px" @ref =" @diagram" @bind-Nodes =" @Nodes " @bind-Connectors =" @Connectors " Created =" OnCreate " EnableChunkMessages =" true" GetCustomTool =" GetCustomTool" >
2424 </SfDiagramComponent >
2525 <span id =' diagramName' style =" display :none " >DiagramComponent</span >
2626 </div >
116116 base .OnMouseUp (args );
117117 }
118118 }
119- DiagramObjectCollection <Node > nodes = new DiagramObjectCollection <Node >();
120- DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
119+ DiagramObjectCollection <Node > Nodes = new DiagramObjectCollection <Node >();
120+ DiagramObjectCollection <Connector > Connectors = new DiagramObjectCollection <Connector >();
121121 private string ExtensionType = " .json" ;
122122 // Method to save the diagram
123123 public async Task SaveDiagram ()
158158 SymbolPalette .Targets .Add (diagram );
159159 }
160160
161- private async void Oncreate ()
161+ private async void OnCreate ()
162162 {
163163 json = File .ReadAllText (" wwwroot/PathShape.json" );
164164 await diagram .LoadDiagramAsync (json );
You can’t perform that action at this time.
0 commit comments