Ngx-bootstrap: feat(typeahead): option to disable certain item from the typeahead

Created on 7 May 2018  路  3Comments  路  Source: valor-software/ngx-bootstrap

Feature request:

In my current project, I have a typeahead which I need to show a list of items. That list has potentially some items that would be unselectable (disabled). I don't see any such option in current typeahead, but basically it would grey out the item and make the item unselectable/unclickable

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 2.0.3

Angular: 5.0.0

Bootstrap: 4.4.0

comp(typeahead) feat-request

Most helpful comment

@valorkin
Thanks a lot for the reply. However, I'm not sure what you mean by I can do it now... I do use a template and I know that I can change the color but the item is still selected, I'm looking to make it different color and unselectable, is the latter doable?

All 3 comments

You can do it even now with https://valor-software.com/ngx-bootstrap/#/typeahead#item-template

Implementing this feature will require a lot of overhead. Cuz different data types are supported.

I will and this as a possible enchancemt to roadmap

@valorkin
Thanks a lot for the reply. However, I'm not sure what you mean by I can do it now... I do use a template and I know that I can change the color but the item is still selected, I'm looking to make it different color and unselectable, is the latter doable?

Hi, was this functionality implemented?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tpiros picture tpiros  路  3Comments

juanitavollmering picture juanitavollmering  路  3Comments

KimBum picture KimBum  路  3Comments

RolfVeinoeSorensen picture RolfVeinoeSorensen  路  3Comments

mounthorse-slns picture mounthorse-slns  路  3Comments