Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

208
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda