From c0fce534c255ef1e25779e2f0e8de95bb4e160cf Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 23 Apr 2012 11:55:08 -0700 Subject: CSS Panel - Add styles view delegate. Add handling for adding rules to stylesheets --- .../styles-view-container.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'js/panels/css-panel/styles-view-container.reel/styles-view-container.html') diff --git a/js/panels/css-panel/styles-view-container.reel/styles-view-container.html b/js/panels/css-panel/styles-view-container.reel/styles-view-container.html index e8ddb139..56e965c2 100644 --- a/js/panels/css-panel/styles-view-container.reel/styles-view-container.html +++ b/js/panels/css-panel/styles-view-container.reel/styles-view-container.html @@ -37,6 +37,13 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot } } }, + "stylesViewDelegate" : { + "module": "js/panels/css-panel/styles-view-mediator", + "name": "StylesViewMediator", + "properties": { + "ruleListContainer": {"@": "ruleListContainer"} + } + }, "ruleListContainer": { "module": "js/panels/css-panel/rule-list-container.reel", "name": "RuleListContainer" @@ -49,7 +56,14 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot "module": "js/components/toolbar.reel", "name": "Toolbar", "properties": { - "element": {"#": "styles-view-toolbar"} + "element": {"#": "styles-view-toolbar"}, + "delegate": {"@": "stylesViewDelegate" }, + "buttons": [ + { + "title": "Add", + "identifier": "add" + } + ] } } } -- cgit v1.2.3