-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component: Dialog in 'headless' mode can not be draggable
#15499
Comments
Draggable feature can be open by setting But The draggable feature is active unless you set Eventually, if you want to provide header and want to active draggable feature, please dont set |
Yes I understand, this is the issue I'm describing. For my application, I need a custom header, so I cannot set |
I didn't understand why you must set You can provide your custom header template, the default one wont be shown. |
Yes, you can use as below. {
...,
templates: {
header: HeaderTemplate,
footer: FooterTemplate
}
} |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap? Thanks a lot for your understanding! |
Describe the bug
The
draggable
option on DynamicDialog's dialog is only applicable when using the built-in primeng dialog header. However, if we want to have a custom dialog header, there is no way to call into theDialog
'sinitDrag
event manually.Environment
Window,s Chrome
Reproducer
No response
Angular version
17.3.7
PrimeNG version
17.16.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.x
Browser(s)
No response
Steps to reproduce the behavior
I can get access to the
DynamicDialogRef
but that does not expose any way to start/support draggable for the dialog such as via theinitDrag
method.Expected behavior
A few options:
DynamicDialogRef
objectinitDrag
(and possibly others) should be exposed directly off of theDynamicDialogRef
instead of the whole Dialog instance if that should remain an internal implementation detailThe text was updated successfully, but these errors were encountered: