【发布时间】:2021-09-02 11:39:23
【问题描述】:
我有一个 Angular 水平步进器,它在 css 中被禁用,我想显示工具提示。 由于禁用的 css 代码,这将不起作用。
// .ts file:
<mat-horizontal-stepper labelPosition="bottom" #stepper>
<mat-step
editable="false">
<ng-template matStepLabel>
<span matTooltip="'test11111'">test1</span>
</ng-template>
</mat-step>
</mat-horizontal-stepper>
// .scss file
:host ::ng-deep .mat-horizontal-stepper-header-container {
pointer-events: none;
cursor: not-allowed;
}
如何在禁用步骤的情况下显示工具提示?
【问题讨论】:
标签: angular angular-material angular-material-stepper