Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/primevue/scripts/components/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ const DatePickerProps = [
default: 'false',
description: 'When enabled, displays the calendar as inline instead of an overlay.'
},
{
name: 'hideMinutes',
type: 'boolean',
default: 'false',
description: 'When enabled, hides the minutes input in the time picker.'
},
{
name: 'showOtherMonths',
type: 'boolean',
Expand Down
4 changes: 4 additions & 0 deletions packages/primevue/src/datepicker/BaseDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export default {
type: Boolean,
default: false
},
hideMinutes: {
type: Boolean,
default: false
},
showOtherMonths: {
type: Boolean,
default: true
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@
<div v-bind="ptm('separatorContainer')" data-pc-group-section="timepickerContainer">
<span v-bind="ptm('separator')" data-pc-group-section="timepickerlabel">{{ timeSeparator }}</span>
</div>
<div :class="cx('minutePicker')" v-bind="ptm('minutePicker')" data-pc-group-section="timepickerContainer">
<div v-if="!hideMinutes" :class="cx('minutePicker')" v-bind="ptm('minutePicker')" data-pc-group-section="timepickerContainer">
<slot name="minuteincrementbutton" :callbacks="minuteIncrementCallbacks">
<Button
:class="cx('pcIncrementButton')"
Expand Down