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 - with tabs
-+-@@ -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
-+-@@ -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+ + +trueto 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 totrueto hide alias. @param {string=} description Add a description to the content. @param {boolean=} hideDescription Set totrueto hide description. -@param {array=} navigation Array of sub views. See example above. **/