diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbuttongroup.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbuttongroup.directive.js index 4360cc6995..ece75ae3d1 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbuttongroup.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbuttongroup.directive.js @@ -1,3 +1,86 @@ +/** +@ngdoc directive +@name umbraco.directives.directive:umbButtonGroup +@restrict E +@scope + +@description +Use this directive to render a button with a dropdown of alternative actions. + +
++ ++ +++ + +
+ (function () {
+ "use strict";
+
+ function Controller() {
+
+ var vm = this;
+ vm.buttonGroup = {
+ defaultButton: {
+ labelKey: "general_defaultButton",
+ hotKey: "ctrl+d",
+ handler: function() {
+ // do magic here
+ }
+ },
+ subButtons: [
+ {
+ labelKey: "general_subButton",
+ hotKey: "ctrl+b",
+ handler: function() {
+ // do magic here
+ }
+ }
+ ]
+ }
+ }
+
+ angular.module("umbraco").controller("Umbraco.Controller", Controller);
+
+ })();
+
+
+