我正在使用动态对话框,并且希望在页脚上有一些按钮,但是该组件中的页脚似乎只允许使用文本。
const ref = this.dialogService.open(TermsComponent, {
data: {
entity: response.IDEntity,
user: response.IDUser
},
header: this.translate.instant('resTerminosCond'),
width: '70%',
footer: `
<button mz-button class="btnLoginAgree" (click)="termsAccepted()" translate>
resAceptar
</button>
<button mz-button class="btnLoginDisagree" (click)="onAcceptTerms(false);" translate>
resRechazar
</button>`
});
Run Code Online (Sandbox Code Playgroud)
任何帮助表示赞赏!
小智 -1
对于 DynamicDialog,您只需使用 primeNg 类“ui-dialog-footer”并将按钮放置在其中。
<div class="ui-dialog-footer">
<button mz-button class="btnLoginAgree" (click)="termsAccepted()" translate>
resAceptar
</button>
<button mz-button class="btnLoginDisagree" (click)="onAcceptTerms(false);" translate>
resRechazar
</button>
</div>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8820 次 |
| 最近记录: |