gd-bs 6.5.2 → 6.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -182,6 +182,8 @@ class _Pagination extends Base<IPaginationProps> implements IPagination {
|
|
|
182
182
|
|
|
183
183
|
// Create the previous link
|
|
184
184
|
let item = this.createItem("Previous", itemTemplate);
|
|
185
|
+
item.classList.add("disabled");
|
|
186
|
+
item.classList.add("previous");
|
|
185
187
|
list.appendChild(item);
|
|
186
188
|
|
|
187
189
|
// Loop for the number of pages to create
|
|
@@ -196,6 +198,8 @@ class _Pagination extends Base<IPaginationProps> implements IPagination {
|
|
|
196
198
|
|
|
197
199
|
// Create the next link
|
|
198
200
|
item = this.createItem("Next", itemTemplate);
|
|
201
|
+
pages > 1 ? null : item.classList.add("disabled");
|
|
202
|
+
item.classList.add("next");
|
|
199
203
|
list.appendChild(item);
|
|
200
204
|
}
|
|
201
205
|
}
|