@enki-tek/fms-web-components 0.1.21 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ const DEFAULT_PAGE_COUNT = 5;
|
|
6
6
|
export let noOfItems = 300;
|
7
7
|
export let itemPerPage = 30;
|
8
8
|
export let currentPage = 1;
|
9
|
+
export let size = "lg";
|
9
10
|
let pageCount = Math.ceil(noOfItems / itemPerPage);
|
10
11
|
let pagesToShow = pageCount > DEFAULT_PAGE_COUNT ? DEFAULT_PAGE_COUNT : pageCount;
|
11
12
|
let pageNumbers = [];
|
@@ -48,7 +49,7 @@ function nextPage() {
|
|
48
49
|
}
|
49
50
|
</script>
|
50
51
|
|
51
|
-
<Pagination size
|
52
|
+
<Pagination {size} ariaLabel="Page navigation example">
|
52
53
|
<PaginationItem disabled={currentPage === 1} class="eradius custom-pagination-list">
|
53
54
|
<PaginationLink previous href="#" class="custom-pagination-link-add" on:click={prevPage}
|
54
55
|
><Icon name="chevron-left" /></PaginationLink
|
@@ -5,7 +5,7 @@
|
|
5
5
|
export let sensor = false;
|
6
6
|
</script>
|
7
7
|
|
8
|
-
<div class="{sensor ? "col-12
|
8
|
+
<div class="{sensor ? "col-12" : "col-12 col-md-6 col-sm-6 col-lg-6 col-xl-3" } ">
|
9
9
|
<div class="{notify ? 'blip' : ''} m-2 card {className} {small ? 'card-mini' : ''}">
|
10
10
|
<slot />
|
11
11
|
</div>
|