Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Month picker display issue #52

Closed
nuluferdmello opened this issue Aug 18, 2020 · 5 comments
Closed

Month picker display issue #52

nuluferdmello opened this issue Aug 18, 2020 · 5 comments

Comments

@nuluferdmello
Copy link

Hi, in my project I am trying to use the month picker in menu, but i didn't find the correct options in vuetify-form-base schema's. Please suggest a solution to fix my issue.

@wotamann
Copy link
Owner

You can try

schema:{ date: { type: 'date', ext:'month' } }

@nuluferdmello
Copy link
Author

Hi, thanks for your reply.

I did try that but it shows a normal month calendar and i am looking for something like what they have in vuetify like this.
https://vuetifyjs.com/en/components/date-pickers/#month-pickers-in-dialog-and-menu

@wotamann
Copy link
Owner

I made an update in V 0.2.5 and this should work - see example

Date, Time, Color as native HTML-Type, Menu and Pickers

Problem: any 'type' prop in vuetify-control or your custom component is shadowed from v-form-base schema 'type' property
if <v-datepicker type="month"> control needs type="month" then you can solve this with 'typeInt' ->

schema { monthselect: { type:'date', typeInt:'month'}
schema { monthselect: { type:'date', typeInt:'month', ext:'text' }

components internal 'type' mapping works in this order typeInt || ext || type
schema { vc: { type:'v-control', typeInt:'any-v-type', ext:'any-ext' } -> <v-control type ="typeInt || ext || type" >

"monthpicker": {
      "type": "date",
      "ext": "text",
      "typeInt": "month",
      "color": "green",
      "locale": "de",
      "prependIcon": "event",
      "label": "Month"
   },

@nuluferdmello
Copy link
Author

Thank you for the update. It worked.

@nuluferdmello
Copy link
Author

Hi,

Following on the issue above, its working perfectly with the solution that you provided.

But is there a way to close the picker menu once the month is selected? currently i need to click outside the picker menu to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants