We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Forum post
Howdy,
I Denmark - just like in Sweden - weeks start Mondays. If you copy/paste this code into the basic example (https://bryntum.com/products/scheduler/examples/basic/) week starts Sundays.
See the attached screenshot.
Have I misconfigured something or?
import EnLocale from '../../lib/Core/localization/En.js'; //region Data const currentLocale = { localeName: 'current', localeDesc: 'Current', DateHelper: { locale: 'En', weekStartDay : 3, nonWorkingDays: { 0: true, // Sunday 6: true, // Saturday }, }, }; // use EN locale as a base and apply required customization const locale = LocaleHelper.mergeLocales(EnLocale, currentLocale); LocaleManager.registerLocale('current', { locale : locale }); // Set the current Bryntum locale LocaleManager.applyLocale('current'); //endregion const scheduler = new Scheduler({ appendTo : 'container', resources : [], events : [], startDate : new Date(2017, 0, 1, 6), endDate : new Date(2017, 2, 1, 20), viewPreset : 'example', presets: [{ id: "example", name: "example", defaultSpan: 7 * 4, timeResolution: { unit: "day", increment: 1, }, headers: [ {unit: "week", dateFormat: "W",}, {unit: "month", dateFormat: "MMMM",}, {unit: "day", dateFormat: "D",}, {unit: "day", dateFormat: "ddd",}, ], } ], rowHeight : 50, barMargin : 5, multiEventSelect : true, columns : [ { text : 'Name', field : 'name', width : 130 } ] });
The text was updated successfully, but these errors were encountered:
Closing as not reproducible
Sorry, something went wrong.
No branches or pull requests
Forum post
Howdy,
I Denmark - just like in Sweden - weeks start Mondays. If you copy/paste this code into the basic example (https://bryntum.com/products/scheduler/examples/basic/) week starts Sundays.
See the attached screenshot.
Have I misconfigured something or?
The text was updated successfully, but these errors were encountered: