The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
In the symbol palette we will show a icon. when user will drag and drop in diagram canvas we want to show a template, which will have all the features a diagram node has.
GGGowtham Gunashekar Syncfusion Team February 25, 2021 02:22 PM UTC
Hi Ankit,
We have added a sample link, in that sample we have render a image node in the symbol palette and while drag and drop the image node from the palette to diagram, we cancel the node addition using the OnDrop event and add the button html template node to the diagram, you can use whatever temple instead of button component and achieve your requirement.
As per my understanding if we put HTML, we will not be able to export as image, Is it possible to put SVG instead of HTML?
Thanks,
Ankit S
NGNaganathan Ganesh Babu Syncfusion Team February 26, 2021 03:04 PM UTC
Hi Ankit,
We can’t provide the SVG elements directly into the diagram’s template rendering. however, we can achieve your requirement into some modification in sample side to render the SVG element as a template. Please refer to the below our online KB documentation link.
One more question, While I am resizing the diagram, html content is not resizing. Is there any way to achieve the same functionality like basic shapes?
SKSenthil Kumar Venkatesan Syncfusion Team March 1, 2021 01:51 PM UTC
Hi Ankit ,
We are validating your requirement . We will provide you with further details in 2 business days (3rd march 2021) . We appreciate your patience untill then .
Regards,
Senthil Kumar V
GGGowtham Gunashekar Syncfusion Team March 3, 2021 01:43 PM UTC
Hi Ankit ,
While resizing the node, the template is not resize with respect to node. It’s the actual behavior of the HTML template. You have to handle it by yourself by updating the template dynamically while resizing the node, because the HTML template is not scalable by default.
Regards,
Gowtham
VKVenkataraju KattamuriAugust 10, 2021 09:53 AM UTC
Hi,
I am very new to Syncfusion and Blazor.
Can I add SfCard in Symbol Palatte? If yes, can you please guide how to do that?
Thanks,
Venkat.
GGGowtham Gunashekar Syncfusion Team August 11, 2021 12:03 PM UTC
Hi Venkataraju,
Currently we don’t have Support to add HTML nodes in the symbol Palette. We have logged “Support to add HTML nodes in the symbol palette” as a feature. We does not have any immediate plans to start this feature. We will implement this feature in any one of our upcoming releases.
You can track the feature status from the below link
We suggest you render an image node in the symbol palette and when drag and drop image node into the diagram the Drop event will trigger in that event, we can cancel the addition of the image node and add the HTML node in that place where we dropped the image node into the diagram. We have added the sample for your reference.