NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.85k stars 3.9k forks source link

Improve input property in NzDrawerRef #6634

Open kiyonlin opened 3 years ago

kiyonlin commented 3 years ago

What problem does this feature solve?

Now we can not dynamically set nzFooter and nzOnCancel in NzDrawerRef. Related to #2464

What does the proposed API look like?

export class NzDrawerCustomComponent {
  constructor(private drawerRef: NzDrawerRef<string>) {
    drawerRef.nzFooter = this.templateRef;
    drawerRef.nzOnCancel = () => Promise;
  }
}
GeryStoycheva commented 3 months ago

Hello, I'm also interested in this feature. Will it be implemented soon?