From 7a680873e31b9582aa7115d5bf333ac23530bbde Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 17 Feb 2015 16:29:42 -0800 Subject: [PATCH] [Fixed Position] Begin adding placeholder toolbar Begin adding placeholder toolbar for fixed position view, WTD-879. --- platform/features/layout/bundle.json | 5 +++-- platform/features/layout/src/FixedController.js | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/platform/features/layout/bundle.json b/platform/features/layout/bundle.json index 890a2438a4..18686ebc83 100644 --- a/platform/features/layout/bundle.json +++ b/platform/features/layout/bundle.json @@ -25,8 +25,9 @@ { "items": [ { - "property": "add", - "control": "button" + "method": "add", + "control": "button", + "text": "Add" } ] }, diff --git a/platform/features/layout/src/FixedController.js b/platform/features/layout/src/FixedController.js index 07f0f99731..8e9fb5936e 100644 --- a/platform/features/layout/src/FixedController.js +++ b/platform/features/layout/src/FixedController.js @@ -194,6 +194,14 @@ define( // Initialize styles (position etc.) for cells refreshCellStyles(); + if (Array.isArray($scope.selection)) { + $scope.selection.push({ + add: function () { + window.alert("Placeholder; not yet implemented"); + } + }); + } + return { /** * Get styles for all background cells, as will populate the