【发布时间】:2018-02-20 09:55:06
【问题描述】:
我正在尝试使用 ngx-bootstrap 在弹出框的右上角制作一个手动弹出框关闭按钮。我知道要添加 x 按钮,我们必须使用引导程序中的 &Times。
https://v4-alpha.getbootstrap.com/utilities/close-icon/
但是我不知道如何在我的标题中实现它,因为我正在尝试将它添加到右上角。
content: string = "content of popover ";
Title: string = "Title of popover";
<a [popover]="content" container="body" placement="top" [popoverTitle]="Title" >Making this popover</a>
This 是我正在使用的链接。我正在使用这个例子,模板和组件。
基本上是我的plunker,简单来说,我需要在标题的右上角有个X。
【问题讨论】:
-
那是什么问题?
-
您好,我编辑了我的工作不小心过早地提交了我的帖子,目前尝试在标题的右上角添加一个 x 按钮需要帮助。 @SandipPatel
-
也许你可以分享更容易帮助的代码。
-
@KarthickManoharan 嗨,我在上面分享了我的代码,够了吗?还是我必须在 plunker 上分享?
-
plunker 会很棒
标签: angular frontend ngx-bootstrap