From 8f1863161e6a95f62368a477e696d8765892eb60 Mon Sep 17 00:00:00 2001 From: Jimmie Butler Date: Mon, 24 Nov 2014 11:46:47 -0600 Subject: [PATCH] Array Field item options documentation update. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f4bfb43a..04811c4e 100644 --- a/README.md +++ b/README.md @@ -491,6 +491,20 @@ An `afArrayField` (or an `afQuickField` for an array) supports the additional at An `afArrayField` (or an `afQuickField` for an array) also supports the `initialCount` attribute. Use it to override the default initial count to be something other than 1, including 0. Note that `minCount` will still always take precedence. That is, if the `minCount` is 1 and you specify `initialCount=0`, the initial count will be 1. +To specify options for each item in the array you can set +``` +'arrayFieldName.$': { + ... + autoform: { + afFieldInput: { + options: function () { + //return options object + } + } + } +} +``` + At the moment, the add and remove buttons disappear when you can't use them. This could be changed to make them disabled. You can do this yourself with a custom template, but if you have thoughts about how it should work out of the box, submit an issue to discuss. ### afEachArrayItem