angular5 - NgbPopover with Fullcalendar angular 5
问题描述
I'm having trouble using the NgbPopover component along with fullcalendar. In the FullCalendar eventRender I'm inserting the required attributes for ngbPopover, but it does not execute.
eventRender(dados) {
let title = dados.event.title
let description = dados.event.description
let el = dados.element[0]
el.setAttributeNS(null, "popoverTitle", title)
el.setAttributeNS(null, "ngbPopover", description != undefined ? description : "" )
el.setAttributeNS(null, "triggers", "mouseenter:mouseleave")
}
I need a way to run Popover after doing the inserts of the attributes in html.
When I put the code straight into the html without going through the eventRender it works.
解决方案
推荐阅读
- node.js - 猫鼬批量执行创建,如果不存在,否则更新不包含时间戳
- python - 如何在python中的unix时间戳中获取当前日期时间
- java - Fedora 30 和 OpenJDK 1.8.0_212:java.lang.OutOfMemoryError:无法创建新的本机线程
- haskell - 在 Haskell 中调试内存问题
- selenium - 即使安装了 Selenium 也无法导入
- python-3.x - 如何防止箭头重叠?
- apache-kafka-connect - Debezium,Kafka-connect:对 postgres 的更新不会显示为消息,只有插入是
- groovy - 将值从子声明式 Jenkins 管道传递给父级
- c - 我在主进程和他的孩子之间共享 C 中的内存,但我无法同步他们的动作
- php - 通过 php 以编程方式获取 AWS Elastic Beanstalk 运行状况代码