gpt4 book ai didi

angularjs - 将自定义类添加到 md-dialog-container

转载 作者:行者123 更新时间:2023-12-02 01:02:09 26 4
gpt4 key购买 nike

我有一个按钮可以打开 md-dialog-container。是否可以将自定义类添加到该 md-dialog-container 的根目录?

<button class="button bluebutton right" ng-click="vm.launchContactActivityPopup()" ng-if="vm.isPersisted()" ng-disabled="!vm.isAllowedToRegisterContactActivity()">Contactd vastleggen</button>
public launchContactActivityPopup(): void {
this.$mdDialog.show({
template: `<register-contact-activity-popup></register-contact-activity-popup>`,
targetEvent: null,
clickOutsideToClose: false
});
}

最佳答案

像这样修复它。

<md-dialog class="myClass">
<register-contact-activity-popup></register-contact-activity-popup>
</md-dialog>`,>`,

关于angularjs - 将自定义类添加到 md-dialog-container,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49859215/

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