Trying to establish a connection between nodes using a datamanager, but encountering an issue when specifying connectionDataSource. The nodes disappear and the screen is left empty, with no errors in the console.
@Component({
selector: 'app-relationship-playground-component',
template: `<ejs-diagram id="diagram" width="100%" height="580px" [layout]='layout' [dataSourceSettings]='dataSourceSettings' [getNodeDefaults]='nodeDefaults' [getConnectorDefaults]='connectorDefaults'>
</ejs-diagram>`,
encapsulation: ViewEncapsulation.None
})
export class RelationshipPlaygroundComponentComponent implements OnInit{
// rest of the code removed for brevity
}
I referred to the documentation and sample repository for guidance:
https://github.com/syncfusion/ej2-samples/blob/master/src/diagram/crud.ts
https://ej2.syncfusion.com/angular/documentation/diagram/data-binding#how-to-perform-editing-at-runtime