Code Monkey home page Code Monkey logo

vue-month-picker's People

Contributors

aarcoraci avatar alfredhot avatar ayushab avatar bensiu avatar bobsynfig avatar casparwaara avatar christianz avatar eriksattelmair avatar es335ab avatar flacu avatar geodro avatar innprogress avatar johanlopes avatar johnymahony avatar jsilva74 avatar kerlon5 avatar kibarabara avatar kleinrein avatar mywira avatar nextmat avatar niller2005 avatar omrirz avatar prasit789 avatar pursuitofloot avatar pusztaimate avatar roskio avatar sc0vu avatar steveninc avatar thiagovictorino avatar vitowang1998 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-month-picker's Issues

year change event should change input

when the year is change either by buttons or editing, the date shown in the input should change to reflect the new year, even though the months are still the same.

type files?

Is there a types file available for typescript projects?

Min/max dates?

Have you considered adding the ability to set a minimum and/or maximum date? I didn't see any other related issues or requests for this but would really like to be able to disable dates outside of a given range.

How to set default month selection

We have used MonthPickerInput. Default month and year values are not displayed by default even we used default month and default year property for default selection.

Is possible to display month and year values by default.

Setting Default year breaks the year selector

I've added this as my element in my application:

                    <MonthPicker
                        @change="showDate"
                        date-format="%n %Y"
                        :show-current="true"
                        :show-year="true"
                        :default-month="month"
                        :default-year="year"
                        :min-date="getDate()"
                    >
                    </MonthPicker>

This is the result:
image

Note: if the year is hard coded to a number it doesn't break however if using a variable of any kind this is the result

Props defaultYear is not applied for first time emit @change

Hello @kleinrein,
Thanks for this plugin.

I have an issue with props defaultYear. The first emit @change not return the year i have set, but the default current year.

How how i use the plugin

<month-picker :default-month="10" :default-year="2022" @change="onChangeMonthPicker"></month-picker>

I browsed the plugin code source and found on mounted lifecycle:

mounted() {
  if (this.defaultMonth) {
      this.selectMonth(this.defaultMonth - 1)
  } else if (!this.noDefault) {
      this.selectMonth(0)
  }
  if (this.defaultYear) {
      this.year = this.defaultYear
  }
}

The method this.selectMonth() is called and emit first @change before
this.year = this.defaultYear has been executed.

Please, take a look of this issue.

Month picker popup is cropped

Hello,
When the component is too close from the right border of the view, the month picker popup is cropped. It should be aligned with the view border to be correctly displayed.
image

How can I select only current month and before months

Hi friends. I have got a question. I want to select only current month and previous months. How can I disable the months after the current month using month picker? My question is urgent. I would be grateful if you reply.

year only?

Hi,

Can we disable the month option, and allow only year selection?
For instance, in case we only have to get year (not month/day/time).

month picker remaining open always

i have used in with modal but month picker not closing always remaining open .. and if i use it in form when pressing next year button form getting submited .

bug: date changes on year-change (even if year is out of range)

When using the buttons to change the year, the year of the selection changes. (debatable, see P.S.)
This happens even if we are switching into a year that is outside [minDate, maxDate]

Here is the example in my application
disabled-year-selected

And here is a similar reproduction in the demo of this repo
disabled-year-selected--demo

P.S.
As stated by @wshgziva in a comment to another issue , perhaps we don't want to change the chosen date as soon as the year changes (displayYear != chosenYear)

Disable Past Month and Year

Hello,
I need to disable past month and year in picker. So, user can only select month and year of current and future
Is there any possible way to do this?
Thanks

Month range

Is this library support to select month range?

Prop for input placeholder

I try pass placeholder proprty to component, but it appear as attribute of month-picker-input-container

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.