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

Make startDate option function-compatible #46

Open
alexdpunkt opened this issue Sep 4, 2014 · 1 comment
Open

Make startDate option function-compatible #46

alexdpunkt opened this issue Sep 4, 2014 · 1 comment
Labels
Status: todo Accepted issue that needs someone to fix it. Type: enhancement Feature request or other QoL improvements.

Comments

@alexdpunkt
Copy link

It would be really helpful if startDate could be a function, in addition to a string.

$(selector).dateRangePicker({

    // Current possibility: string 
    startDate: '04.09.2014',

    // possibility 2: function
    startDate: function() {
        return $('.start-date').val();
    }
});

In my case I need the second datepicker (two separate datepicker setup) to have the startDate of the first date field.

this startDate function should be executed everytime before the datepicker is opened, and set the startDate of the datepicker to the returned date.

@longbill
Copy link
Owner

good idea, it will support this soon

@monovertex monovertex added Type: enhancement Feature request or other QoL improvements. Status: todo Accepted issue that needs someone to fix it. labels Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: todo Accepted issue that needs someone to fix it. Type: enhancement Feature request or other QoL improvements.
Projects
None yet
Development

No branches or pull requests

3 participants