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

Document the accept property #44

Merged
merged 1 commit into from
Aug 30, 2016
Merged
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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ this:
And don't worry, that custom trigger is a form label, so the file input remains
100% accessible.

### Configuring file formats with `accept`
You can use the `accept` attribute to only allow specifc types of
files. In this example we only allow `.png` & `.jpg` file types.

```hbs
{{#x-file-input multiple=true action=(action "didSelectFiles") accept="image/png,image/jpg"}}
<img src="http://i-should-buy-a-boat-cat.com" alt="I should buy a boat"/>
{{/x-file-input}}
```


## Customizing the CSS

The whole point of this component is for you to customize your inputs with CSS
Expand Down