@@ -59,6 +59,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
59
59
@Input ( { alias : 'nzPopconfirmArrowPointAtCenter' , transform : booleanAttribute } )
60
60
override arrowPointAtCenter ?: boolean ;
61
61
@Input ( 'nzPopconfirmTitle' ) override title ?: NzTSType ;
62
+ @Input ( 'nzPopconfirmTitleContext' ) titleContext ?: Object | null = null ;
62
63
@Input ( 'nz-popconfirm' ) override directiveTitle ?: NzTSType | null ;
63
64
@Input ( 'nzPopconfirmTrigger' ) override trigger ?: NzTooltipTrigger = 'click' ;
64
65
@Input ( 'nzPopconfirmPlacement' ) override placement ?: string | string [ ] = 'top' ;
@@ -97,6 +98,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
97
98
nzIcon : [ 'nzIcon' , ( ) => this . nzIcon ] ,
98
99
nzPopconfirmShowArrow : [ 'nzPopconfirmShowArrow' , ( ) => this . nzPopconfirmShowArrow ] ,
99
100
nzPopconfirmBackdrop : [ 'nzBackdrop' , ( ) => this . nzPopconfirmBackdrop ] ,
101
+ nzPopconfirmContext : [ 'nzTitleContext' , ( ) => this . titleContext ] ,
100
102
nzAutoFocus : [ 'nzAutoFocus' , ( ) => this . nzAutofocus ] ,
101
103
...super . getProxyPropertyMap ( )
102
104
} ;
@@ -164,7 +166,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
164
166
<div>
165
167
<div class="ant-popover-inner-content">
166
168
<div class="ant-popover-message">
167
- <ng-container *nzStringTemplateOutlet="nzTitle">
169
+ <ng-container *nzStringTemplateOutlet="nzTitle; context: nzTitleContext ">
168
170
<ng-container *nzStringTemplateOutlet="nzIcon; let icon">
169
171
<span class="ant-popover-message-icon">
170
172
<span nz-icon [nzType]="icon || 'exclamation-circle'" nzTheme="fill"></span>
0 commit comments