primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Dynamic Dialog: custom header template

Open projectX21 opened this issue 6 years ago • 36 comments

If you have a PrimeNG PRO Support subscription please post your issue at;

https://pro.primefaces.org

where our team will respond within 4 business hours.

If you do not have a PrimeNG PRO Support subscription, fill-in the report below. Please note that your issue will be added to the waiting list of community issues and will be reviewed on a first-come first-serve basis, as a result, the support team is unable to guarantee a specific schedule on when it will be reviewed. Thank you for your understanding.

Current Queue Time for Review Without PRO Support: ~8-12 weeks. With PRO Support: 1 hour

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[ x ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.

Current behavior

imho it isn't possible to define a custom p-header in a dynamic dialog. Instead the specified component will be rendered into the dialog body and you are only able to set the header text via the DynamicDialog properties.

Expected behavior You should be able to define a custom header template as it is possible for the normal dialog.

projectX21 avatar Sep 03 '20 13:09 projectX21

Maybe there is a workaround to archive custom headers in a dynamic dialog? I think this is a much needed feature.. For clean code I want to outsource the dialogs from the components. This isn't possible with normal dialogs, because their code is in the same parent component, isn't it?

projectX21 avatar Sep 04 '20 10:09 projectX21

If I may suggest this feature to be extended to 'Custom header and footer'. I believe custom footer is even more needed, since a common UI convention is to add the Save/Dismiss buttons to the footer of the modal. Currently that is not possible, and achieving a workaround with the current implementation is very hackish

igority avatar Dec 21 '20 00:12 igority

It's awful for such great library.. Header and Footer are must be customizable with ng-template..

teland94 avatar Jan 05 '21 21:01 teland94

+1

kareljuricka avatar Jan 21 '21 07:01 kareljuricka

+1

This is a big gap. need very much.

idanielsteven avatar Feb 05 '21 20:02 idanielsteven

+1 Will you guys accept a PR for that?

benshabatnoam avatar Mar 02 '21 10:03 benshabatnoam

+1 Very much needed. A possible workaround in the mean time is to use a div in the body of the Dynamic Dialog, with absolute position, and place it on top.

marchrenno avatar Mar 13 '21 08:03 marchrenno

+1, and you should also be able to customize the footer. A similar approach to how Angular Material does this would be ideal.

example.component.html

<h2 pDialogTitle>The Title</h2>
<p-dialog-content>
   ... 
</p-dialog-content>
<p-dialog-actions>
   <button>Close</button>
   <button>Save</button>
</p-dialog-actions>

tapoinde avatar Mar 25 '21 20:03 tapoinde

+1 Much needed!

bmizepatterson avatar Apr 02 '21 14:04 bmizepatterson

+1 DynamicDialog has some defects in maximizing, minimizing, and dragging dialog too.

NarjesSharafi avatar May 09 '21 10:05 NarjesSharafi

+1 Cabeçalho e rodapé personalizados em DinamicDialog Deve existir, pois é algo comum.

lucassalatiel1993 avatar May 10 '21 16:05 lucassalatiel1993

+1

jonnomk avatar Jun 07 '21 14:06 jonnomk

+1

Big gap :(

Kallaran avatar Jun 15 '21 15:06 Kallaran

+1

dinesh-88 avatar Jun 25 '21 15:06 dinesh-88

+1

JBottelsen avatar Jul 13 '21 19:07 JBottelsen

+1

schlagi123 avatar Jul 21 '21 07:07 schlagi123

+1

luketanner avatar Jul 28 '21 08:07 luketanner

+1

JerinJ avatar Aug 11 '21 06:08 JerinJ

+1

mycahmason avatar Aug 30 '21 20:08 mycahmason

+1

pkalkman avatar Sep 21 '21 06:09 pkalkman