Skip to content

Commit

Permalink
864801: ImageAdded
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiruthika-3470 committed Jan 3, 2024
1 parent b764707 commit 6aa6462
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<div class="content-wrapper" style="width:100%">
<div>
<SfDiagramComponent @ref="@diagram" Height="400px" Created="OnCreated" InteractionController="@DiagramInteractions.ZoomPan"
NodeCreating="OnNodeCreating" ConnectorCreating="OnConnectorCreating" SetNodeTemplate="SetTemplate">
<SfDiagramComponent @ref="@diagram" Height="400px" InteractionController="@DiagramInteractions.ZoomPan"
NodeCreating="OnNodeCreating" ConnectorCreating="OnConnectorCreating" >
<DataSourceSettings Id="OrderID" ParentId="CustomerID">
<SfDataManager Url="https://localhost:7131/graphql" GraphQLAdaptorOptions=@adaptorOptions Adaptor="Adaptors.GraphQLAdaptor"></SfDataManager>
</DataSourceSettings>
Expand Down Expand Up @@ -76,14 +76,6 @@
}
};

}
@*Hidden:Lines*@
private void OnCreated()
{

FitOptions mobileoptions = new FitOptions() { Mode = FitMode.Both, Region = DiagramRegion.Content };
diagram.FitToPage(mobileoptions);

}
@*End:Hidden*@
private void OnConnectorCreating(IDiagramObject obj)
Expand All @@ -95,8 +87,4 @@
connector.SourceDecorator.Shape = DecoratorShape.None;
connector.Style = new ShapeStyle() { StrokeColor = "#3A4857", Fill = "#3A4857" };
}
private CommonElement SetTemplate(IDiagramObject node)
{
return null;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ GraphQL is a query language for APIs with which you can get exactly what you nee
1. First run the ASPNetCoreGraphQlServer application which is the GraphQL server.
2. Now run the BlazorApplication in which data is bounded to the diagram component by using the DataManager's GraphQL adaptor.

Please see the output image below.
![GraphQLAdaptor-Binding-Blazor-Diagram](GraphQLAdaptor.png)

### Note

You can run the GraphQL server using the Banana Cake Pop IDE, which you can download from [here](https://chillicream.com/products/bananacakepop/).

0 comments on commit 6aa6462

Please sign in to comment.