GUACAMOLE-5: Allow uses of the guacGroupList directive to decorate any rendered GroupListItems.

This commit is contained in:
Michael Jumper
2016-08-05 21:26:02 -07:00
parent 56d9c90940
commit 4c7af7e692

View File

@@ -73,7 +73,18 @@ angular.module('groupList').directive('guacGroupList', [function guacGroupList()
*
* @type Number
*/
pageSize : '='
pageSize : '=',
/**
* A callback which accepts an array of GroupListItems as its sole
* parameter. If provided, the callback will be invoked whenever an
* array of root-level GroupListItems is about to be rendered.
* Changes may be made by this function to that array or to the
* GroupListItems themselves.
*
* @type Function
*/
decorator : '='
},
@@ -206,6 +217,10 @@ angular.module('groupList').directive('guacGroupList', [function guacGroupList()
}
// Invoke item decorator, if provided
if ($scope.decorator)
$scope.decorator($scope.rootItems);
});
/**