summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-12-31 05:58:49 +0100
committerJules Laplace <jules@okfoc.us>2016-12-31 05:58:49 +0100
commitfe31b3ad482c959deb5b4fa447e3d73c042e982c (patch)
treef8ddac33fd7890d599e1f75a00eb08217ecde84d /examples/index.js
parent3319b60ca946a0fad11da52bb3fee4aa66afb62c (diff)
parent073b2af3e21edccb35dad6b5bfdda2772f164abf (diff)
merge
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js11
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'}
},