html - Angular 6-如何在没有指针事件时显示工具提示
问题描述
我在 td 中有一个表,它将根据 ngClass 条件禁用,但问题是即使在 ngClass 上使用 css 禁用指针事件时也必须显示工具提示,目前由于指针事件没有显示工具提示,
但我想要表td 被禁用,同时还必须显示工具提示
**HTML:**
<td class="allowCursor" (mousedown)="!allowEventBaselineTwo(item) && selectRowExec($event,item,''+(pExec-1)+j);" data-toggle="tooltip"
data-placement="top" [title]="tooltipHierarchy1(buildbaselineSpendType, item.business.id, item.country.id)"
[ngClass]="{'noEvent':(bisinessStackholder == 'Y' && executeSaving == 'no' && projectStageNo >= ProjectStageCodeConst.EXECUTED)|| (projectStage == ProjectStageConst.IMPLEMENTED && isImplementedItem(item))|| ((item.businessStage==ProjectStageCodeConst.PENDING_APPROVAL || item.businessStage==ProjectStageCodeConst.AUTO_APPROVED || item.businessStage==ProjectStageCodeConst.APPROVED ) || (!rowEditable) || (item.isActive=='N')) }">{{buildbaselineSpendType === 'BF' ? item.business.name :item.country.name}}
</td>
CSS
.noEvent .allowCursor {
pointer-events: auto;
}
.noEvent{
pointer-events: none;
}
解决方案
推荐阅读
- cadence-workflow - 如何从 Cadence 工作流程或活动发出自定义指标?
- java - 如何克服 java.lang.OutOfMemoryError:图像文件在 XML 代码中未在 Activity 中使用的位置。仅在某些设备中出现错误
- rust - 如何为关联常量在 Self 上设置显式生命周期?
- android - 如何使用 Qt 读取 Android 中现有的 SQLite 数据库?
- c++ - 控制台在立即获得输入后立即退出
- swift - Swift 断言失败
- amazon-web-services - 在ec2中部署rest api并通过https服务
- node.js - Express JS 上的 UnhandledPromiseRejectionWarning
- linux-kernel - 我在哪里可以找到在 Debian Stretch 上构建网络驱动程序的 pci_find_device() 声明?
- rxjs - withLatestFrom 在 switchMap 中不起作用