summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
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'}
},