summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-10-24 15:40:58 -0400
committerJules Laplace <jules@okfoc.us>2016-10-24 15:40:58 -0400
commit3593fb22cb19366fb1bf30c4ecfbf4428b8aad82 (patch)
treee73903cf6021c399cc7bd4dd54f4b3e2613c2de0 /examples
parentbdcc83dae3742bf1c88da43a23f7278127d6251c (diff)
key/value pairs in enums
Diffstat (limited to 'examples')
-rw-r--r--examples/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/index.js b/examples/index.js
index 15de909..998aa1d 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -35,6 +35,15 @@ var app = okcms.createApp({
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'}
},