Giter Club home page Giter Club logo

Comments (5)

wotamann avatar wotamann commented on July 21, 2024

You can try

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

from vuetify-form-base.

nuluferdmello avatar nuluferdmello commented on July 21, 2024

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

from vuetify-form-base.

wotamann avatar wotamann commented on July 21, 2024

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"
   },

from vuetify-form-base.

nuluferdmello avatar nuluferdmello commented on July 21, 2024

Thank you for the update. It worked.

from vuetify-form-base.

nuluferdmello avatar nuluferdmello commented on July 21, 2024

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.

from vuetify-form-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.