Skip to content

Commit b9848c6

Browse files
committed
set state properties to private to remove them from storybook documentation
1 parent 1c47aca commit b9848c6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/uui-pagination/lib/uui-pagination.element.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ export class UUIPaginationElement extends LitElement {
126126
}
127127

128128
@queryAll('uui-button.nav-button')
129-
navButtons!: Array<UUIButtonElement>;
129+
private navButtons!: Array<UUIButtonElement>;
130130

131131
@query('#group')
132-
buttonGroup!: any;
132+
private buttonGroup!: any;
133133

134134
/**
135135
* This property is used to generate a proper `aria-label`. It will be announced by screen reader as: "<<this.label>>. Current page: <<this.current>>"
@@ -170,7 +170,7 @@ export class UUIPaginationElement extends LitElement {
170170
}
171171

172172
@state()
173-
visiblePages: number[] = [];
173+
private visiblePages: number[] = [];
174174

175175
protected _current = 1;
176176
/**
@@ -192,22 +192,26 @@ export class UUIPaginationElement extends LitElement {
192192

193193
/**
194194
* This method will change the page to a next one.
195+
* @memberof UUIPaginationElement
195196
*/
196197
goToNextPage() {
197198
this.current++;
198199
this.dispatchEvent(new UUIPaginationEvent(UUIPaginationEvent.CHANGE));
199200
}
200201

201202
/**
202-
* This method will change the page to a previous one.
203+
* Change the page to a previous one.
204+
* @memberof UUIPaginationElement
203205
*/
204206
goToPreviousPage() {
205207
this.current--;
206208
this.dispatchEvent(new UUIPaginationEvent(UUIPaginationEvent.CHANGE));
207209
}
208210

209211
/**
210-
* This method will change the page to the one passed as an argument to this method.
212+
* Change the page to the one passed as an argument to this method.
213+
* @param {number} page
214+
* @memberof UUIPaginationElement
211215
*/
212216
goToPage(page: number) {
213217
this.current = page;

0 commit comments

Comments
 (0)