mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUACAMOLE-5: Allow uses of the guacGroupList directive to decorate any rendered GroupListItems.
This commit is contained in:
@@ -73,7 +73,18 @@ angular.module('groupList').directive('guacGroupList', [function guacGroupList()
|
|||||||
*
|
*
|
||||||
* @type Number
|
* @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);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user