From cca41f345e47851531fc19c3cb4fa229b84805c1 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 2 May 2019 14:34:51 -0700 Subject: [PATCH] Update planning-v0.2.md --- ext/afform/docs/sandbox/planning-v0.2.md | 32 +++++++++++++----------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/ext/afform/docs/sandbox/planning-v0.2.md b/ext/afform/docs/sandbox/planning-v0.2.md index 38a576f227..2792a7c444 100644 --- a/ext/afform/docs/sandbox/planning-v0.2.md +++ b/ext/afform/docs/sandbox/planning-v0.2.md @@ -44,20 +44,24 @@ $afformTags = [ // format (e.g. `entity,id`). // // Must NOT be required at runtime. Only required for administration. -$afformPalette = [ - [ - 'id' => 'Parent:afl-name', /* string; should be stable but otherwise opaque to consumer */ - 'entity' => 'Parent', - 'title' => 'Name', - 'template' => '', - ], - [ - 'id' => 'Parent:afl-name', - 'entity' => 'Parent', - 'title' => 'Address', - 'template' => '', - ], -]; +function computePalette($entityType) { + return [ + [ + 'group' => 'Blocks', + 'title' => 'Name', + 'template' => '', + ], + [ + 'title' => 'Address', + 'template' => '', + ], + [ + 'group' => 'Fields', + 'title' => 'First Name', + 'template' => '', + ], + ]; +} ``` ## Form Metadata: *.aff.json -- 2.25.1