diff --git a/accessible/README.md b/accessible/README.md
index 661b3a105..0246c9daf 100644
--- a/accessible/README.md
+++ b/accessible/README.md
@@ -25,23 +25,23 @@ the main component to be loaded. This will usually be blocklyApp.AppView, but
if you have another component that wraps it, use that one instead.
-Customizing the Toolbar and Audio
+Customizing the Sidebar and Audio
---------------------------------
-The Accessible Blockly workspace comes with a customizable toolbar.
+The Accessible Blockly workspace comes with a customizable sidebar.
-To customize the toolbar, you will need to declare an ACCESSIBLE_GLOBALS object
+To customize the sidebar, you will need to declare an ACCESSIBLE_GLOBALS object
in the global scope that looks like this:
var ACCESSIBLE_GLOBALS = {
mediaPathPrefix: null,
- toolbarButtonConfig: []
+ customSidebarButtons: []
};
The value of mediaPathPrefix should be the location of the accessible/media
folder.
-The value of 'toolbarButtonConfig' should be a list of objects, each
-representing buttons on the toolbar. Each of these objects should have four
+The value of 'customSidebarButtons' should be a list of objects, each
+representing buttons on the sidebar. Each of these objects should have five
keys:
- 'text' (the text to display on the button)
diff --git a/accessible/app.component.js b/accessible/app.component.js
index e4d8f2635..89d7fbe58 100644
--- a/accessible/app.component.js
+++ b/accessible/app.component.js
@@ -37,6 +37,7 @@ blocklyApp.AppView = ng.core.Component({
+
@@ -46,7 +47,7 @@ blocklyApp.AppView = ng.core.Component({
`,
directives: [
blocklyApp.ToolboxComponent, blocklyApp.WorkspaceComponent,
- blocklyApp.BlockOptionsModalComponent],
+ blocklyApp.BlockOptionsModalComponent, blocklyApp.SidebarComponent],
pipes: [blocklyApp.TranslatePipe],
// All services are declared here, so that all components in the
// application use the same instance of the service.
diff --git a/accessible/media/accessible.css b/accessible/media/accessible.css
index 0deaebb7c..038668126 100644
--- a/accessible/media/accessible.css
+++ b/accessible/media/accessible.css
@@ -6,7 +6,7 @@
float: left;
width: 350px;
}
-.blocklyToolbarColumn {
+.blocklySidebarColumn {
float: left;
margin-left: 10px;
margin-top: 20px;
diff --git a/accessible/sidebar.component.js b/accessible/sidebar.component.js
new file mode 100644
index 000000000..e8890fe30
--- /dev/null
+++ b/accessible/sidebar.component.js
@@ -0,0 +1,81 @@
+/**
+ * AccessibleBlockly
+ *
+ * Copyright 2016 Google Inc.
+ * https://developers.google.com/blockly/
+ *
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @fileoverview Angular2 Component representing the sidebar that is shown next
+ * to the workspace.
+ *
+ * @author sll@google.com (Sean Lip)
+ */
+
+blocklyApp.SidebarComponent = ng.core.Component({
+ selector: 'blockly-sidebar',
+ template: `
+