question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add weekdaysLetter to options on datePicker

See original GitHub issue

Expected 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)

  1. https://stackblitz.com/edit/ngx-materialize-etmuun

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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
LiadIdancommented, Jan 26, 2018

@radoslawdabrowski the source of the issue is the types package for materialize, I submitted a PR to fix it.

1reaction
jfcerecommented, Jan 26, 2018

@LiadIdan update is on the way and btw thanks for your contribution on this issue!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found