Comments (6)
You mean, like when the date picker opens it shows the specific month of a start date?
Can you elaborate on that? I didn't quite get what you mean.
from dudatepicker.
You mean, like when the date picker opens it shows the specific month of a start date?
yes. Like when the date picker opens, it should show dates from October 2015 and below
from dudatepicker.
I see.
Currently there is no configuration on that. But, if there is no value (on the input) it will show the current date's month, otherwise it will show the selected date's month.
from dudatepicker.
yes. Like when the date picker opens, it should show dates from October 2015 and below
What you can do is set the default value
and maxDate
to October 31, 2015. (read more)
from dudatepicker.
yes. Like when the date picker opens, it should show dates from October 2015 and below
What you can do is set the default
value
andmaxDate
to October 31, 2015. (read more)
Can I set the default value without adding it to the input field?
from dudatepicker.
Yes. By specifying the value
configuration upon initialization
// default `format` config
duDatepicker('#datepicker', { value: '10/31/2015' });
// custom `format` config
duDatepicker('#datepicker', { format: 'yyyy-mm-dd', value: '2015-10-31' });
or calling setValue
(after initialization)
duDatepicker('#datepicker', 'setValue', '10/31/2015');
Just remember that the value should be formatted like the format
config
from dudatepicker.
Related Issues (20)
- Uncaught TypeError: Cannot read property 'appendChild' of null HOT 4
- Spanish translation suggestion HOT 1
- I can select disabled dates HOT 2
- Disable or select half day HOT 1
- Option to append "dcalendarpicker" to specific parent element not bottom of the page. HOT 1
- Specific days/dates to disable HOT 1
- Using inline inside jquery UI HOT 4
- Reset range when selecting new date HOT 2
- Date range format HOT 3
- setMinDate and setMaxDate as built-in methods HOT 2
- Make the year range for _getYears() configurable HOT 1
- _getYears() should consider minDate and maxDate HOT 1
- Multiple dates not work as spected
- Date changed event not firing on 'body' HOT 2
- Dates are not visible propery/incorrect date when Popup opens
- Datechange, different format HOT 2
- How can i make it like the last two pictures HOT 3
- Request : internationalization HOT 4
- request : option for DOM parent node HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dudatepicker.