How to apply a mask to a p-autocomplete

UI Components for Angular
Post Reply
Naxxan60
Posts: 1
Joined: 11 Mar 2020, 09:49

11 Mar 2020, 09:54

Hello, I need to apply a mask on an existing p-autocomplete. I would prefer to avoid adding another imported script. I don't find a way to combine the p-inputmask and the p-autocomplete. I need a mask like : 999_999_999_99999. Can you help me on this please?

Code: Select all

 <p-autoComplete
    id="pautocompleteSiret"
    [(ngModel)]="service"
    [suggestions]="services"
    field="SIRET"
    placeholder="Pas de numéro de SIRET"
    emptyMessage="Aucune correspondance">
  </p-autoComplete>
I have the version 5 of Primeng.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests