Component: Dialog - Custom Positioning Support #13966
Labels
Status: Discussion
Issue or pull request needs to be discussed by Core Team
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Type: New Feature
Issue contains a new feature or new component request
Describe the feature you would like to see added
I propose enhancing the Dialog component by adding a new property or expanding the existing one to handle more complex positioning based on coordinates "X" and "Y". Currently, the Dialog component offers fixed position options like "center," "left," "top," "bottom," "right," "topleft," "topright," "bottomleft," and "bottomright."
Is your feature request related to a problem?
The current fixed position options limit the flexibility of instantiating the dialog precisely based on specific coordinates, hindering the ability to position the dialog dynamically.
Describe the solution you'd like
I suggest introducing a new property to the openDialog function. This property would accept an object with "x" and "y" coordinates. The dialog position would then be dynamically centered on the screen based on these provided coordinates, offering more precise control over its placement.
Describe alternatives you have considered
I have considered using the component OverlayPanel, but this one also doesn't fit the need described.
Additional context
No response
The text was updated successfully, but these errors were encountered: