gpt4 book ai didi

primeng - 动态对话框上的页脚按钮

转载 作者:行者123 更新时间:2023-12-04 17:28:16 26 4
gpt4 key购买 nike

我正在使用一个动态对话框,我想在页脚上有一些按钮,但是在这个组件中似乎只允许文本作为页脚。

                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>`
});

任何帮助表示赞赏!

最佳答案

像这样使用最新版本的 PrimeNG p- 而不是 ui- 它会起作用。

<div class="p-dialog-footer">

关于primeng - 动态对话框上的页脚按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61922354/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com