mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
24 lines
575 B
JavaScript
24 lines
575 B
JavaScript
/**
|
|
* Copyright © 2019 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
|
**/
|
|
|
|
module.exports = function() {
|
|
return {
|
|
restrict: 'E',
|
|
scope: {
|
|
tooltipLabel: '@',
|
|
iconStyle: '@?',
|
|
itemsSearchStyle: '@?',
|
|
itemsSearch: '=',
|
|
itemsPerPageOptions: '<',
|
|
itemsPerPage: '=',
|
|
totalItems: '<',
|
|
totalItemsStyle: '@?',
|
|
currentPage: '='
|
|
},
|
|
template: require('./pagination.pug'),
|
|
link: function(scope, element, attrs) {
|
|
scope.currentPage = 1
|
|
}
|
|
}
|
|
}
|