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

Not able to change firstday of the week in oraclejet datepicker #63

Open
nishant07kumar opened this issue Jun 17, 2020 · 4 comments
Open

Comments

@nishant07kumar
Copy link

Hi,

I am not able to change firstday of the week in datepicker. seems like a bug in oracle jet libarary.

Thanks,
Nishant Kumar

@peppertech
Copy link
Member

It will change automatically based on the locale that is set for your application.

@nishant07kumar
Copy link
Author

I wanted it to set regardless of locale. so suppose I want to set Wednesday as first day as per my requirement.
Above issue is already a bug created in ojet.
Although I got a workaround.

@peppertech
Copy link
Member

Thanks for the update on your use case. This is not something that we support out of the box. If you can provide your workaround for others that may want to do a similar thing, that would be great.

@nishant07kumar
Copy link
Author

nishant07kumar commented Jul 9, 2020

Please See below

` bootstrap.whenDocumentReady().then(function () {
ko.applyBindings(new SimpleModel(), newElement.get(0));

        ojcontext.getPageContext().getBusyContext().whenReady().then(function () {
            oj.BaseCustomElementBridge.getInstance(newElement[0])._WIDGET_INSTANCE.option("firstDayOfWeek", firstDayOfWeek);
        });
    }); `

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