Add weekdaysLetter to options on datePicker
See original GitHub issueExpected Behavior
Hi, I have problem with translation the datepicker, because I need to use key weekdaysLetter
in Pickadate.DateOptions
which is provided by orginal materializecss library, but here it seems to be not implemented.
Current Behavior
Its seems to work fine when app is on dev mode, npm compile it just fine, the problem shows when I try to run a ng build --prod
, then it throws exception
Object literal may only specify known properties, and ‘weekdaysLetter’ does not exist in type ‘DateOptions’.
Possible Solution
Add weekdaysLetter?: string[];
to Pickadate.DateOptions
(I did that locally and seems to work fine)
Steps to Reproduce (for bugs)
Context
Tying to compile the production version of app.
Your Environment
- Version used: 1.8.0-beta.0
- Angular version used: 5.2.0
- Browser Name and version: Opera/Chrome - Latest version
- Operating System and version (desktop or mobile): Desktop/Windows 10.0.16299.192
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Change option dynamically in JQuery UI DatePicker fails
If you just want to change the already configured options, you can also do: $("#dteEnd").datepicker("option", DateOptions);.
Read more >Datepicker Widget | jQuery UI API Documentation
The jQuery UI Datepicker is a highly configurable plugin that adds datepicker ... date ranges and add in buttons and other navigation options...
Read more >jQuery UI Datepicker
The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and...
Read more >react-datepicker
Installation. The package can be installed via npm: npm install react-datepicker --save. Or via yarn: yarn add ...
Read more >Datepicker
A datepicker is composed of a text input and a calendar pop-up, ... There are three properties that add date validation to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@radoslawdabrowski the source of the issue is the types package for materialize, I submitted a PR to fix it.
@LiadIdan update is on the way and btw thanks for your contribution on this issue!