We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acd240 commit 4d7cc4cCopy full SHA for 4d7cc4c
packages/uui-pagination/lib/uui-pagination.element.ts
@@ -160,14 +160,23 @@ export class UUIPaginationElement extends LitElement {
160
@property({ reflect: true, attribute: 'aria-label' })
161
ariaLabel = '';
162
163
+ private _total = 100;
164
+
165
/**
166
* Set the amount of pages to navigate.
167
* @type {number}
168
* @attr
169
* @default: 1
170
*/
171
@property({ type: Number })
- total = 1;
172
+ get total() {
173
+ return this._total;
174
+ }
175
+ set total(newValue: number) {
176
+ this._total = newValue;
177
+ this._visiblePages = this._generateVisiblePages(this._current);
178
+ this.requestUpdate('total', newValue);
179
180
181
@state()
182
private _range = 0;
0 commit comments