Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
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 answers
Answer question

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 Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!