From 98f5b6df37466b8c0643d386063d6bcd2c23286c Mon Sep 17 00:00:00 2001 From: David Jensen Date: Fri, 28 Mar 2014 14:51:08 +0100 Subject: [PATCH] Wrote itemNames where it should have been titleMap --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f71b6a00f..c3c2c579a 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ var schema = { { key: "surname", type: "select", - itemNames: { + titleMap: { "Andersson": "Andersson", "Johansson": "Johansson", "other": "Something else..." @@ -191,12 +191,12 @@ They do need a list of ```items``` to have as children. ``` -*select* and *checkboxes* can take an object, ```itemNames```, where key is the value to be saved on the model +*select* and *checkboxes* can take an object, ```titleMap```, where key is the value to be saved on the model and the value is the title of the option. ```javascript { type: "select", - itemNames: { + titleMap: { "yes": "Yes I do", "no": "Hell no" }