Ngx-chips: Replace default placeholder when new placeholder text is provided.

Created on 4 Oct 2018  路  4Comments  路  Source: Gbuomprisco/ngx-chips

PLEASE MAKE SURE THAT:

  • you searched similar issues online (9/10 issues in this repo are solved by googling, so please...do it)
  • you provide an online demo I can see without having to replicate your environment
  • you help me by debugging your issue, and if you can't, do go on filling out this form

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior
If I change placeholder text, it will still show old placeholder 'Enter a new tag' until you add at least one item.

Expected behavior
It should show new placeholder on initial load and not wait for addition of one item.

Minimal reproduction of the problem with instructions (if applicable)

What do you use to build your app?. Please specify the version
angular-cli,

Angular version:
angular 5

ngx-chips version:
1.9.8

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
chrome

Most helpful comment

If I use this code, it works:

<tag-input [(ngModel)]="empty" [placeholder]="'A different placeholder'" [secondaryPlaceholder]="'A different placeholder again'"> </tag-input>

Can you paste your code?

All 4 comments

You have two placeholders [placeholder] and [secondaryPlaceholder]. You can change them or remove them by providing an empty string.

Yes, but it does not replace it immediately. Only after adding first item. check this issue
https://github.com/Gbuomprisco/ngx-chips/issues/338

I could not find any solution in that issue.
Is it possible to replace it even when tag input is empty?

If I use this code, it works:

<tag-input [(ngModel)]="empty" [placeholder]="'A different placeholder'" [secondaryPlaceholder]="'A different placeholder again'"> </tag-input>

Can you paste your code?

By any chance can we change the font of placeholder to italics?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ignasimg picture Ignasimg  路  4Comments

DevInstinct picture DevInstinct  路  4Comments

neilharding picture neilharding  路  5Comments

MrBra1nwash picture MrBra1nwash  路  4Comments

altschuler picture altschuler  路  3Comments