Skip to content

Commit

Permalink
fix README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Stuart committed Apr 10, 2015
1 parent 082aa97 commit 05c9a2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ element, you can use it just like you would normally. This means
things like having `<optgroup>` tags inside your select, or even plain
old `<option>` elements to represent things like empty values.

XSelect thinly wraps a native <select> element so that it can be object
XSelect thinly wraps a native `<select>` element so that it can be object
and binding aware. It is used in conjuction with the `x-option`
component to construct select boxes. E.g.

Expand All @@ -26,6 +26,7 @@ component to construct select boxes. E.g.
{{#x-option value=bob}}Bob Newhart{{/x-option}}
{{/x-select}}
```

the options are always up to date, so that when the object bound to
`value` changes, the corresponding option becomes selected.

Expand All @@ -38,13 +39,12 @@ As of version 1.1.0, `emberx-select` supports the `multiple`
option. This means you can pass an array as its value, and it will set
its selections directly on that array.

```hbs
```handlebars
{{#x-select value=selections multiple=true action="selectionsChanged"}}
{{#x-option value=fred}}Fred Flintstone{{/x-option}}
{{#x-option value=bob}}Bob Newhart{{/x-option}}
{{#x-option value=andrew}}Andrew WK{{/x-option}}
{{/x-select}}
```

The selections array will be initialized to an empty array if not present.
Expand Down

0 comments on commit 05c9a2e

Please sign in to comment.