BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Query |
Response | |
I would like to know if there is a possibility to add like a DropDownButton with a hamburger icon in a node which will open a menu inside a node of a diagram |
We have created a sample in which we have rendered an HTML node with dropdown menu. Please refer to a code example and sample below.
Code example:
| |
I know that there is a context menu with the right-click, but I would like a visual button to be seen. |
Could you please confirm us whether you need a custom context menu with icons?. Also, please share us more details such as screenshot of your expected context menu. |
Query |
Response |
the content of drop-down menu is always below the content of the node. I tried z-index and position: relative property to fix this but with no success. |
The node html content always renders behind the selector and it is an default behavior of our diagram control. In your sample, the dropdown menu is an html content, so it renders behind the selector.
We have an option to hide the node selector. Please confirm us whether it will satisfy your requirement.
|
Also it really becomes the problem when the menu goes below other node as seen here: |
To avoid overlapping of nodes, you need to manually position the nodes based on the content. If you are using a layout, you can use layout horizontalSpacing and verticalSpacing properties to add space horizontally and vertically between the nodes.
Help documentation for layout spacing
https://ej2.syncfusion.com/react/documentation/diagram/automatic-layout/?no-cache=1#customize-layout
|
Query |
Response | |
yes that would satisfy our requirement, can you give me a small sample of the code |
Please remove SelectorConstraints ResizeAll from the All constraints to achieve your requirement. Please refer to an code example and sample below.
Code example:
| |
Regarding the second response, but that wouldn't work once the user moves the node closer to the other node. There is no other way to prevent overlapping? Also, it is not overlapping on all of the nodes, only on those who have connector between them, like shown here: |
We don’t have option to prevent overlapping of nodes on interaction. It is not a feasible feature. |
Index.css
/* remove border rect */
#borderRect{
visibility: hidden
}
/* remove rotate handle */
#rotateThumb {
visibility: hidden
}
/* remove pivot line */
#pivotLine {
visibility: hidden
} |