Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #35 from itainoam/patch-1
Browse files Browse the repository at this point in the history
Update readme with info on w11k-select-options
  • Loading branch information
Can Kattwinkel authored Jun 23, 2017
2 parents af5c514 + 8d170b2 commit 6be870c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ See Project Website at http://w11k.github.com/w11k-select
ng-model="selected.data"
>
</div>
```
```
w11k-select-options is **required** and defines the html ```options``` elements that will be rendered within the html ```select``` element. This is similiar to the behavior of angular's ng-option directive. It follow the pattern of ```select as label for value in array```.

w11k-select-config is optional and takes a config object or an array with config objects. The value is evaluated against the surrounding scope. If an array is given, all contained config object will be merged into one config object internally. Later config objects override values of previous config objects (like jQuery.extend or _.merge).

You can use different formats to specify the configuration. Some examples:
Expand Down

0 comments on commit 6be870c

Please sign in to comment.