Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codaline-io/ionic-datepicker
A datepicker component for ionic
https://github.com/codaline-io/ionic-datepicker
date datepicker ionic stenciljs webcomponent
Last synced: 3 months ago
JSON representation
A datepicker component for ionic
- Host: GitHub
- URL: https://github.com/codaline-io/ionic-datepicker
- Owner: codaline-io
- License: mit
- Archived: true
- Created: 2020-03-13T09:53:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-29T10:05:30.000Z (over 2 years ago)
- Last Synced: 2024-09-26T17:23:19.059Z (3 months ago)
- Topics: date, datepicker, ionic, stenciljs, webcomponent
- Language: TypeScript
- Size: 647 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
# ionic-datepicker [![Build Status](https://github.com/codaline-io/ionic-datepicker/workflows/CI/badge.svg)](https://github.com/codaline-io/ionic-datepicker/actions/)
This is a datepicker component for ionic projects. It is using [js-datepicker](https://www.npmjs.com/package/js-datepicker) in an [ion-popover](https://ionicframework.com/docs/api/popover) with the possibility to use an [ion-datetime](https://ionicframework.com/docs/api/datetime) component on mobile devices.
## [Live Demo & Preview](https://codaline-io.github.io/ionic-datepicker)
## Setup
### Requirements
- Install [`js-datepicker`](https://www.npmjs.com/package/js-datepicker)
- Make them globally available (on `window`) load `js-datepicker` css (in an angular project, just add them to your `angular.json` as scripts and styles)
- Keep in mind that it is only usable in an ionic project### Script tag
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc### Node Modules
- Run `npm install @codaline-io/ionic-datepicker --save`
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc### In a stencil-starter app
- Run `npm install @codaline-io/ionic-datepicker --save`
- Add an import to the npm packages `import @codaline-io/ionic-datepicker;`
- Then you can use the element anywhere in your template, JSX, html etc### In other frameworks
- Check stenciljs [framework integration documentation](https://stenciljs.com/docs/overview)
## Usage
- After the setup use `ionic-datepicker` as tag in your ionic pwa
### Configuration
- For configration and translations check the [component readme](https://github.com/codaline-io/ionic-datepicker/blob/master/src/components/ionic-datepicker/readme.md)
### Styling
- Styling/theming is done with css-variables.
- All css variables can be found in the [variables.css](https://github.com/codaline-io/ionic-datepicker/blob/master/src/components/variables.css)
- All color/background variables are using ionic css variables per default