Reputation: 199
I have to select specific time from given time slot. after selecting the date from the calendar available time slot will be shown for appointment.
Upvotes: 3
Views: 14979
Reputation: 8156
There is one in Bootstrap DateTime Picker.
Which has exact component you need.
<div class="input-append date" id="datetimepicker"
data-date="12-02-2012" data-date-format="hh">
<input class="span2" size="16" type="text" value="12-02-2012">
<span class="add-on"><i class="icon-th"></i></span>
</div>
Invoke it like : $('#datetimepicker').datetimepicker('remove')
You can use PrimeNG Calendar.
import {CalendarModule} from 'primeng/calendar';
It has timeOnly
parameter which only shows time picker.
<p-calendar [(ngModel)]="date8" [timeOnly]="true"></p-calendar>
Upvotes: 2