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

Include the attribute today_date #74

Closed
wants to merge 2 commits into from

Conversation

JeffBorges
Copy link

Include the attribute today_date to set the current date of Zebra_DatePicker using the date of the server

@stefangabos
Copy link
Owner

stefangabos commented Jul 23, 2016

There are already 2 ways of setting the current data:

  • the most obvious one, setting the "value" attribute of the input field
<input type="text" value="2016-07-23" class="datepicker">
  • setting the "start_date" property

@JeffBorges
Copy link
Author

that ways setting the start date, in my case I wanted setting the current date of calendar, because I could not rely on the browser date

@stefangabos
Copy link
Owner

Server side (using PHP) that would be either

<input type="text" value="<?php echo date('Y-m-d')?>" class="datepicker">

or

<input type="text" data-zdp_start_date="<?php echo date('Y-m-d')?>" class="datepicker">

@JeffBorges
Copy link
Author

JeffBorges commented Jul 23, 2016

with value:

image

image

with start_date:

image

image

what I need (with today_date):
image

I don't need setting the start date, I need setting the current date and I got it with this change in your plugin.

Thank you for your return and your plugin, it help me many times.

@JeffBorges JeffBorges closed this Jul 28, 2016
@stefangabos
Copy link
Owner

No, I understand and it is something that makes sense. It's the "reference_date", and it is something that I'll implement

@stefangabos stefangabos reopened this Aug 6, 2016
@JeffBorges
Copy link
Author

Ok, Thank you.

stefangabos added a commit that referenced this pull request Oct 27, 2018
@stefangabos stefangabos closed this Nov 2, 2018
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

Successfully merging this pull request may close these issues.

2 participants