【问题标题】:Angular 6 Ngx typeahead options renderingAngular 6 Ngx typeahead 选项渲染
【发布时间】:2018-12-06 05:19:06
【问题描述】:

我正在使用Angular ngx-bootstrap typeahead plugin

当我在模态中使用预输入输入时,

选项值显示在容器模式中。

但我不想在容器模式中显示

我想在下面显示外部模态图片。

我需要设置什么?

对不起英语。

非常感谢。

【问题讨论】:

  • 改变字头下拉的z-index,也请贴出你的代码,让其他人看到
  • @JoelJoseph 我已经设置了,无法正常工作

标签: angular angular6 typeahead


【解决方案1】:

不知道这个方法好不好。

但是

我已经可以解决了。

步骤 1:在根style.scss中设置z-index

typeahead-container {
    z-index: 99999 !important;
}

步骤 2:在Input typeshead标签内添加属性[container]="'body'"

<input
   ....
   [container]="'body'"
   ....
   class="form-control">

结果:

为我工作。

对不起英语。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-29
    • 1970-01-01
    • 2018-11-24
    • 1970-01-01
    • 2023-03-09
    • 1970-01-01
    • 1970-01-01
    • 2019-03-06
    相关资源
    最近更新 更多