[英]disable ngx-bootstrap popover?
Is there a way for a popover to not show over the label if it doesn't meet the condition?如果不满足条件,有没有办法让弹出框不显示在标签上?
<label [popover]-"popTemplate" popoverTitle="Nicknames">{{label}}</label>
<ng-template #popTemplate>
<li *ngFor="let names of nickNames">
{{ names }}
</li>
</ng-template>
Is there something like [isDisabled]="!haveNickNames()"
?有没有类似
[isDisabled]="!haveNickNames()"
? or use ngIf
in some way?或以某种方式使用
ngIf
?
Given the documentation , you can use the isOpen
property根据文档,您可以使用
isOpen
属性
<label [popover]="popTemplate" triggers="" [isOpen]="!haveNickNames">
{{label}}
</label>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.