Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

196
Visualizações
PrimeNG - what are my options for adding a placeholder for a time picker?

I am using the prime ng time picker

Is there any way (or work around) where I can have a text placeholder instead of a vacant time picker? (00:00)

<p-calendar #timePicker [timeOnly]="true" hourFormat="24> </p-calendar>

Or are there any time pickers that do allow text placeholders?

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

I think you can bind a value of type Date in the p-calendar tag. This would display the date and time accordingly.

eg:

.html

<p-calendar #timePicker [timeOnly]="true" hourFormat="24" [(ngModel)]="currentDate"> </p-calendar>

.ts

currentDate: Date;
about 4 years ago · Juan Pablo Isaza Relatório

0

According to documentation you can add placeholder property:

<p-calendar #timePicker [timeOnly]="true" hourFormat="24" placeholder="'enter your placeholder here'"> </p-calendar>
about 4 years ago · Juan Pablo Isaza Relatório

0

try this

<p-calendar inputId="calendar"
              [showIcon]="true"  formControlName="startDate"
           class="form-control" date-format=" M/d/yy" [showTime]="true"  
             ></p-calendar>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda