Overwrite the method in v-date-picker #12717
Unanswered
obelisk0114
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Since
vuetify
doesn't support keyboard access in year button inv-date-picker
, I need to add keyboard control in that part. So I want to addtabindex=0
and related keypress eventListener to the year items, which are<li>
elements.I find that I can overwrite
genYearItem (year: number): VNode
in VDatePickerYears.ts to addtabindex
and event listener.I also find a link to extend
vuetify
component.However, the component, VBtn, in the example is a simple component with only one file.
VDatePicker is a complex one with many files doing their own jobs.
Does anyone know how to overwrite
genYearItem (year: number): VNode
method?Beta Was this translation helpful? Give feedback.
All reactions