From 48754c78bf11ffa6839da75061e3a64f136768b6 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 17 Feb 2015 15:30:23 -0800 Subject: [PATCH] [Edit] Wire in toolbar representer Wire in representer for handling toolbars in Edit mode, and add some clarifying documentation. WTD-878. --- platform/commonUI/edit/README.md | 8 ++++++++ platform/commonUI/edit/bundle.json | 3 +++ 2 files changed, 11 insertions(+) diff --git a/platform/commonUI/edit/README.md b/platform/commonUI/edit/README.md index b594f3be02..3691e8211a 100644 --- a/platform/commonUI/edit/README.md +++ b/platform/commonUI/edit/README.md @@ -31,3 +31,11 @@ proxy in the current selection (in addition to whatever objects the user will conceive of as part of the current selection), typically with `inclusive` set to `true`. +## Selection + +The `selection` property of a view's scope in Edit mode will be +initialized to an empty array. This array's contents may be modified +to implicitly change the contents of the toolbar based on the rules +described above. Care should be taken to modify this array in-place +instead of shadowing it (as the selection will typically +be a few scopes up the hierarchy from the view's actual scope.) diff --git a/platform/commonUI/edit/bundle.json b/platform/commonUI/edit/bundle.json index 475fae23db..953497a388 100644 --- a/platform/commonUI/edit/bundle.json +++ b/platform/commonUI/edit/bundle.json @@ -94,6 +94,9 @@ { "implementation": "EditRepresenter.js", "depends": [ "$q", "$log" ] + }, + { + "implementation": "representers/EditToolbarRepresenter.js" } ] }