Skip to main content

DiagramEdgesBuilder.DataSource Method

Name Parameters Description
DataSource(JS) js Binds the edges collection to the specified data. Specify this property if you use node and edge data sources. Mirrors the client-side dataSource option.
DataSource(IEnumerable, String[]) data, key Binds diagram edges to a collection: Array, List, or IEnumerable.
DataSource(Func<DataSourceFactory, OptionsOwnerBuilder>) configurator Binds diagram edges to data, allows you to configure data access from different sources: API controllers, Razor page handlers, OData services, arrays, and more.
DataSource(String, String[]) staticJsonUrl, key Binds diagram edges to read-only data in JSON format.