Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Jan 21, 2022
1 parent 769bc10 commit b7e0e3d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Ember Observer Score](https://emberobserver.com/badges/ember-pikaday.svg)](https://emberobserver.com/addons/ember-pikaday)
[![NPM](https://badgen.net/npm/v/ember-pikaday)](https://www.npmjs.com/package/ember-pikaday)

ember-pikaday provides datepicker modifiers & components for Ember using the Pikaday library.
ember-pikaday provides a datepicker modifier & components for Ember using the Pikaday library.

**This addon is fully integration tested, and it provides test helpers to interact with the datepicker in your own tests.**

Expand All @@ -29,6 +29,20 @@ cd your-project-directory
ember install ember-pikaday
```

## Styles

In order to give apps control over styling, the default CSS does not load unless you tell it to. The simplest way to do this is to make this file:

```js
// app/modifiers/pikaday.js

/* Opt-in to using pikaday's default CSS */
import 'ember-pikaday/pikaday.css';
export { default } from 'ember-pikaday/modifiers/pikaday';
```

This means that the `{{pikaday}}` modifier within your app is the one from `ember-pikaday`, with the styles loaded too.

## Usage

### {{pikaday}} modifier
Expand Down

0 comments on commit b7e0e3d

Please sign in to comment.