diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-12-31 05:58:49 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-12-31 05:58:49 +0100 |
| commit | fe31b3ad482c959deb5b4fa447e3d73c042e982c (patch) | |
| tree | f8ddac33fd7890d599e1f75a00eb08217ecde84d /examples/index.js | |
| parent | 3319b60ca946a0fad11da52bb3fee4aa66afb62c (diff) | |
| parent | 073b2af3e21edccb35dad6b5bfdda2772f164abf (diff) | |
merge
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/index.js b/examples/index.js index 92db7c0..8918043 100644 --- a/examples/index.js +++ b/examples/index.js @@ -36,13 +36,22 @@ var app = okcms.createApp({ id: {type: 'string'}, title: {type: 'string'}, body: {type: 'text'}, - links: {type: 'link-list'}, + links: {type: 'link-list', textLabel: "A", linkLabel: "B"}, }, bread: { type: {type: 'string', id: true}, title: {type: 'string'}, description: {type: 'text'}, color: {type: 'enum', options: ["red","blue","green"]}, + rating: {type: 'enum', options: { + "e": "Everyone", + "ec": "Early Childhood", + "e10": "Everyone 10+", + "t": "Teen", + "m": "Mature", + "ao": "Adults Only", + "rp": "Rating Pending", + }}, video: {type: 'video'}, images: {type: 'gallery'} }, |
