Description
The saved query list directive to render a list of saved queriesUsage
as element:Directive info
- This directive creates new scope.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
<collaborate:saved-query-list
user="{object}"
[title="{string}"]
[allow-saving="{string}"]
[date-format="{string}"]>
</collaborate:saved-query-list>
| Param | Type | Details |
|---|---|---|
| user | object | Display saved queries by the given user (type: twigkit.social.model.Profile). |
| title (optional) | string | If set, title will be used displayed above bookmarks |
| allow-saving (optional) | string | If set to false the save search input will not be shown |
| date-format (optional) | string | Format to use for the saved query created date. Default: dd/MM/yyyy h:mma. See #/api/lightning.filter:dateFormat[date format filter] for valid formats. |
angular.module('twigkitLightApp')
.controller('MainCtrl', ['$scope', function ($scope) {
$scope.$on('savedQueryAdded',function(query){
alert('Query - ' + query.name + ' have been saved.');
});
}]);
angular.module('twigkitLightApp')
.controller('MainCtrl', ['$scope', function ($scope) {
$scope.$on('savedQueryDeleted',function(){
alert('Query has been deleted.');
});
}]);
Was this page helpful?