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

It's not working. #6

Closed
ifarooq opened this issue Jan 18, 2018 · 3 comments
Closed

It's not working. #6

ifarooq opened this issue Jan 18, 2018 · 3 comments

Comments

@ifarooq
Copy link

ifarooq commented Jan 18, 2018

i can see the elements on inspect element but its not displaying anything. There is no error in console as well.

@ifarooq
Copy link
Author

ifarooq commented Jan 18, 2018

Never mind it's sorted out. Basically the place-holder prop is required, if it's not passed nothing shows up.
<vue-monthly-picker @selected="setYearMonth" place-holder="Select Year and Month" :month-labels="monthLabels"
v-model="year_month">

@ifarooq ifarooq closed this as completed Jan 18, 2018
@ittus
Copy link
Owner

ittus commented Jan 21, 2018

@ifarooq Thank you for your contribution. I'll update the document.

@ifarooq
Copy link
Author

ifarooq commented Jan 22, 2018

You are welcome, in next update if you can add a feature to pass a default value, that would be great, this is needed when we use it in update form. I have done this using jQuery.
$('#to-year-month .month-year-display').html(data.to_year+'/'+data.to_month);
Like <vue-monthly-picker :default="2017/12" ....

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