Skip to content

Commit fe4a8ee

Browse files
jeroenvanrielabzainuddin
authored andcommitted
Fix tables in README.md
1 parent 8d38447 commit fe4a8ee

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ console.log(cat.undefinedProperty); // undefined
9090

9191
### Constructor: options
9292

93-
|key|default| | |
94-
|-|-|-|-|-|-|
93+
|key|default| | |
94+
|---|---|---|---|
9595
|relations|undefined|Relations to be instantiated when instantiating this model as well. Should be an array of strings.| `['location', 'owner.parents']`
9696

9797

@@ -213,8 +213,8 @@ animal.save().then(() => {
213213

214214
The `save` function accepts a few paramaters as an `options` object:
215215

216-
|key|default| | |
217-
|-|-|-|-|-|-|
216+
|key|default| | |
217+
|---|---|---|---|
218218
|onlyChanges|false|When true, only changes made with `setInput` are saved.| `animal.save({ onlyChanges: true })`
219219
|url|undefined|When set, use specified url for the request.| `animal.save({ url: '/api/animal/special/url' })`
220220
|data|undefined|When set, append `data` to result. Existing keys from `toBackend` will be overwritten by data, while new keys will be added. | `animal.save({ data: { id: 1, some_other_field: 'will be added' } })`
@@ -394,8 +394,8 @@ A Store (Collection in Backbone) is holds multiple instances of models and have
394394

395395
### Constructor: options
396396

397-
|key|default| | |
398-
|-|-|-|-|-|-|
397+
|key|default| | |
398+
|---|---|---|---|
399399
|relations|undefined|Relations to be instantiated when new models are instantiated using `add()`. Should be an array of strings.| `animalStore = new AnimalStore({ relations: ['location', 'owner.parents'] })`
400400
|limit|25|Page size per fetch, also able to set using `setLimit()`. By default a limit is always set, but there are occations where you want to fetch everything. In this case, set limit to false. | `animalStore = new AnimalStore({ limit: false })`
401401
|comparator|undefined| The models in the store will be sorted by comparator. When it's a string, the models will be sorted by that property name. If it's a function, the models will be sorted using the [default array sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort). | `animalStore = new AnimalStore({ comparator: 'name' })`

0 commit comments

Comments
 (0)