Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenbourgois committed Jun 15, 2017
1 parent 6d04f79 commit e9b785f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Pikaday has many useful options:
* `field` bind the datepicker to a form field
* `trigger` use a different element to trigger opening the datepicker, see [trigger example][] (default to `field`)
* `bound` automatically show/hide the datepicker on `field` focus (default `true` if `field` is set)
* `ariaLabel` data-attribute on the input field with an aria assistance tekst (only applied when `bound` is set)
* `position` preferred position of the datepicker relative to the form field, e.g.: `top right`, `bottom right` **Note:** automatic adjustment may occur to avoid datepicker from being displayed outside the viewport, see [positions example][] (default to 'bottom left')
* `reposition` can be set to false to not reposition datepicker within the viewport, forcing it to take the configured `position` (default: true)
* `container` DOM node to render calendar into, see [container example][] (default: undefined)
Expand Down
2 changes: 1 addition & 1 deletion pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
// automatically show/hide the picker on `field` focus (default `true` if `field` is set)
bound: undefined,

// data-attribute on the input field with an aria assistance tekst
// data-attribute on the input field with an aria assistance tekst (only applied when `bound` is set)
ariaLabel: 'Use the arrow keys to pick a date',

// position of the datepicker, relative to the field (default to bottom & left)
Expand Down

0 comments on commit e9b785f

Please sign in to comment.