File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ const DatePickerProps = [
2323 default : 'false' ,
2424 description : 'When enabled, displays the calendar as inline instead of an overlay.'
2525 } ,
26+ {
27+ name : 'hideMinutes' ,
28+ type : 'boolean' ,
29+ default : 'false' ,
30+ description : 'When enabled, hides the minutes input in the time picker.'
31+ } ,
2632 {
2733 name : 'showOtherMonths' ,
2834 type : 'boolean' ,
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export default {
2222 type: Boolean ,
2323 default: false
2424 },
25+ hideMinutes: {
26+ type: Boolean ,
27+ default: false
28+ },
2529 showOtherMonths: {
2630 type: Boolean ,
2731 default: true
Original file line number Diff line number Diff line change 377377 <div v-bind =" ptm('separatorContainer')" data-pc-group-section =" timepickerContainer" >
378378 <span v-bind =" ptm('separator')" data-pc-group-section =" timepickerlabel" >{{ timeSeparator }}</span >
379379 </div >
380- <div :class =" cx('minutePicker')" v-bind =" ptm('minutePicker')" data-pc-group-section =" timepickerContainer" >
380+ <div v-if = " !hideMinutes " :class =" cx('minutePicker')" v-bind =" ptm('minutePicker')" data-pc-group-section =" timepickerContainer" >
381381 <slot name =" minuteincrementbutton" :callbacks =" minuteIncrementCallbacks" >
382382 <Button
383383 :class =" cx('pcIncrementButton')"
You can’t perform that action at this time.
0 commit comments