Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in README #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ You can also pass in other closure actions to handle `onOpen`, `onClose` and `on
```handlebars
<label>
Start date:
<PikadayInput
@onOpen={{action 'doSomethingOnOpen'}}
<PikadayInput
@onOpen={{action 'doSomethingOnOpen'}}
@onClose={{action 'doSomethingOnClose'}}
@onDraw={{action 'doSomethingOnDraw'}}
/>
Expand Down Expand Up @@ -107,7 +107,7 @@ The `placeholder` attribute is supported as binding so you can improve the user
</label>
```

The `disabled` attribute is supported as binding so you can disabled the datepicker entirely.
The `disabled` attribute is supported as binding so you can disable the datepicker entirely.
If the datepicker is shown to the user and it gets disabled it will close the datepicker itself.

```handlebars
Expand Down Expand Up @@ -186,7 +186,7 @@ Localizing the datepicker is possible in two steps. To localize the output of th
app.import('node_modules/moment/locale/de.js');
```

To localize the datepicker itself, this is the popup you see after clicking the input, a little more work is necessary. The prefered way to do this is writting a custom initializer to inject a localized `i18n` object into the datepicker component. Naturally you can use your own localized strings instead of the ones provided by Moment.js.
To localize the datepicker itself, this is the popup you see after clicking the input, a little more work is necessary. The preferred way to do this is writing a custom initializer to inject a localized `i18n` object into the datepicker component. Naturally you can use your own localized strings instead of the ones provided by Moment.js.

```js
// app/initializers/setup-pikaday-i18n.js
Expand Down Expand Up @@ -310,7 +310,7 @@ assert.equal(Interactor.selectedDay(), 28);
## Excluding assets

By default, ember-pikaday will load for you the needed pikaday assets.
If you need to use a custom version, you can now disable auto assests importing like this:
If you need to use a custom version, you can now disable auto assets importing like this:

```js
// ember-cli-build.js
Expand Down