From a03858a7263e6bccbb6fa38fc30db76e6187665b Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 16 Feb 2016 14:28:18 +0100 Subject: [PATCH] fix examples in umbEditorHeader --- .../editor/umbeditorheader.directive.js | 144 ++++++++++-------- 1 file changed, 83 insertions(+), 61 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js index 7af691fbb3..1f12164b18 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js @@ -9,57 +9,73 @@ Use this directive to construct a header inside the main editor window.

Markup example

-    
+
- +
- - + - - // main content here - + + - - // footer content here - + + // main content here + - + + // footer content here + + + + +

Markup example - with tabs

-    
+
- +
- - + - - - - // tab content here - - - + + - - // footer content here - + + + - +
+ // tab 1 content +
+ +
+ // tab 2 content +
+ + + + + + + // footer content here + + + + +
@@ -73,7 +89,7 @@ Use this directive to construct a header inside the main editor window. var vm = this; vm.content = { - name: "My editor", + name: "", tabs: [ { id: 1, @@ -92,36 +108,42 @@ Use this directive to construct a header inside the main editor window. } - angular.module("umbraco").controller("Umbraco.Controller", Controller); + angular.module("umbraco").controller("MySection.Controller", Controller); })();

Markup example - with sub views

-    
+
- +
- - + - - - - + + - - // footer content here - + - + + + + + + + // footer content here + + + + +
@@ -136,25 +158,25 @@ Use this directive to construct a header inside the main editor window. var vm = this; vm.content = { - name: "My editor", + name: "", navigation: [ { "name": "Section 1", "icon": "icon-document-dashed-line", - "view": "path/to/html/file.html", + "view": "/App_Plugins/path/to/html.html", "active": true }, { "name": "Section 2", "icon": "icon-list", - "view": "path/to/html/file.html" + "view": "/App_Plugins/path/to/html.html", } ] }; } - angular.module("umbraco").controller("Umbraco.Controller", Controller); + angular.module("umbraco").controller("MySection.Controller", Controller); })(); @@ -167,6 +189,7 @@ Use this directive to construct a header inside the main editor window. @param {string} name The content name. @param {array=} tabs Array of tabs. See example above. +@param {array=} navigation Array of sub views. See example above. @param {boolean=} nameLocked Set to true to lock the name. @param {object=} menu Add a context menu to the editor. @param {string=} icon Show and edit the content icon. Opens an overlay to change the icon. @@ -175,7 +198,6 @@ Use this directive to construct a header inside the main editor window. @param {boolean=} hideAlias Set to true to hide alias. @param {string=} description Add a description to the content. @param {boolean=} hideDescription Set to true to hide description. -@param {array=} navigation Array of sub views. See example above. **/