Sha256: b30529ed7ee16bbed149139bf699779ad7bd4d5b0a0948db5878ece5d4556259

Contents?: true

Size: 793 Bytes

Versions: 24

Compression:

Stored size: 793 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 RailsArrayStore({
    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

24 entries across 24 versions & 1 rubygems

Version Path
chr-0.5.7 docs/bootstrap.md
chr-0.5.6 docs/bootstrap.md
chr-0.5.5 docs/bootstrap.md
chr-0.5.4 docs/bootstrap.md
chr-0.5.3 docs/bootstrap.md
chr-0.5.1 docs/bootstrap.md
chr-0.5.0 docs/bootstrap.md
chr-0.4.25 docs/bootstrap.md
chr-0.4.24 docs/bootstrap.md
chr-0.4.23 docs/bootstrap.md
chr-0.4.22 docs/bootstrap.md
chr-0.4.21 docs/bootstrap.md
chr-0.4.20 docs/bootstrap.md
chr-0.4.19 docs/bootstrap.md
chr-0.4.18 docs/bootstrap.md
chr-0.4.17 docs/bootstrap.md
chr-0.4.15 docs/bootstrap.md
chr-0.4.14 docs/bootstrap.md
chr-0.4.13 docs/bootstrap.md
chr-0.4.12 docs/bootstrap.md