Skip to content

Commit

Permalink
chore(docs): Adding info about moment.js in getting started - FRONT-3…
Browse files Browse the repository at this point in the history
…576 (#2364)

Co-authored-by: Romain Emery <emery.romain@gmail.com>
  • Loading branch information
planctus and emeryro authored Mar 24, 2022
1 parent 7976312 commit 01119e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate
></script>
```

### :warning: moment.js

ECL uses [Pikaday](https://github.com/Pikaday/Pikaday) which requires [moment.js](https://momentjs.com/) and this library is not bundled by ECL.
Therefore **moment.js needs to be loaded or bundled by the application or website using ECL**, depending on the needs.

## Need help?

Please contact [COMM Europa Management](mailto:Europamanagement@ec.europa.eu) for support on using this resource for a European Commission website.
Expand Down
5 changes: 5 additions & 0 deletions src/website/src/pages/ec/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Here is an example of default HTML file using ECL:
</html>
```

### moment.js

As explained in a more technical language in the [datepicker api page](/ec/components/forms/datepicker/api/) ECL uses [Pikaday](https://github.com/Pikaday/Pikaday) which requires [moment.js](https://momentjs.com/) and this library is not bundled by ECL.
Therefore **moment.js needs to be loaded or bundled by the application or website using ECL**, depending on the needs.

### Update file path and name

- If you wish to use ECL EU instead of ECL EC, you can find information here <Link to="/eu/getting-started/" label="Getting started EU" />
Expand Down
4 changes: 4 additions & 0 deletions src/website/src/pages/eu/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Here is an example of default HTML file using ECL:
</body>
</html>
```
### moment.js

As explained in a more technical language in the [datepicker api page](/eu/components/forms/datepicker/api/) ECL uses [Pikaday](https://github.com/Pikaday/Pikaday) which requires [moment.js](https://momentjs.com/) and this library is not bundled by ECL.
Therefore **moment.js needs to be loaded or bundled by the application or website using ECL**, depending on the needs.

### Update file path and name

Expand Down

1 comment on commit 01119e9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.