Sha256: 1d558e54568960acfa8ba727ca3a4deb9430aae54f647515362ae6b0870d2d58

Contents?: true

Size: 798 Bytes

Versions: 3

Compression:

Stored size: 798 Bytes

Contents

# Character

## Bootstrap Data

Bootstrapped data configuration example with disabled item updates and pagination:

```coffee
postsConfig = (data) ->
  itemTitleField:     'title'
  disableUpdateItems: true
  objects:            data.posts
  arrayStore: new MongosteenArrayStore({
    resource:    'post'
    path:        '/admin/posts'
    sortBy:      'title'
    pagination:  false
  })
  formSchema:
    title: { type: 'string' }
    body:  { type: 'text'   }
```

```disableUpdateItems``` — do not update items in the list while navigation, ```objects``` — provides initial (bootstrapped) array of objects to be added to the list, ```pagination``` — disable pagination for list. If attached as modules root list, you can access store data with: ```chr.modules.posts.arrayStore.data()```.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chr-0.2.8 docs/bootstrap.md
chr-0.2.7 docs/bootstrap.md
chr-0.2.5 docs/bootstrap.md