Skip to content

Commit a357c6f

Browse files
committed
2 parents 269e2bd + e82328d commit a357c6f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Angular Schema Form External Options Add-on
2-
===========================================
1+
Angular Schema Form External Options
2+
====================================
33

44
This is an add-on for [Angular Schema Form](https://github.com/Textalk/angular-schema-form/).
55

@@ -15,9 +15,10 @@ The external options plugin is an add-on to the Bootstrap decorator so far. To u
1515
Usage
1616
-----
1717
The external options add-on adds a new default mapping.
18+
1819
| Format Type | Becomes |
1920
|:--------------------|:--------------------:|
20-
| "select-external" | A select drop down that loads its options from an external resource if they are an object with a titleMap |
21+
| "select-external" | A select drop down that loads options from an external URI |
2122

2223

2324
| Schema | Default Form type |
@@ -45,7 +46,7 @@ To add a filter to pass over the URI just add a filter called **externalOptionUr
4546

4647
Example
4748
-----------------
48-
Below is an example.
49+
Below is an example. The variables use model.variable at the moment, considering changing that in v2 if I can find an easy way to handle it without that I am happy with.
4950

5051
```javascript
5152
{
@@ -62,11 +63,8 @@ Below is an example.
6263
"suburb": {
6364
"title": "Suburb",
6465
"type": "string",
65-
links:[
66-
{
67-
rel:'options',
68-
href:'./data/{model.state}/{model.city}/suburb.json'
69-
}
66+
"links":[
67+
{ "rel":'options', "href":'./data/{model.state}/{model.city}/suburb.json' }
7068
]
7169
}
7270
}

0 commit comments

Comments
 (0)