Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional navigation methods for pagination element #6344

Closed
nwhittaker opened this issue Jan 25, 2023 · 2 comments
Closed

Additional navigation methods for pagination element #6344

nwhittaker opened this issue Jan 25, 2023 · 2 comments
Assignees
Labels
4 - verified Issues that have been released and confirmed resolved. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. enhancement Issues tied to a new feature or request. estimate - 3 A day or two of work, likely requires updates to tests. good first issue Issues that can be worked on by contributors new to calcite-components. p - low Issue is non core or affecting less that 10% of people using the library

Comments

@nwhittaker
Copy link
Contributor

nwhittaker commented Jan 25, 2023

Description

The pagination element currently only exposes methods for navigating to its previous and next pages. Similarly to what the stepper element offers for navigation methods, it'd be useful to have more programmatic navigation options.

Acceptance Criteria

Can programmatically navigate the element to:

  1. The first step
  2. The last step
  3. An arbitrary step
  4. The prev/next step (as it currently does)

Relevant Info

An immediate use case is that'd it help clean up some unit testing code that needs to navigate to the last page. Currently, we're achieving that by dipping into the pagination element's shadow DOM and clicking buttons.

Which Component

Pagination

Example Use Case

No response

Esri team

ArcGIS Field Apps

@nwhittaker nwhittaker added enhancement Issues tied to a new feature or request. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Jan 25, 2023
@github-actions github-actions bot added the ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. label Jan 25, 2023
@geospatialem geospatialem added p - low Issue is non core or affecting less that 10% of people using the library estimate - 3 A day or two of work, likely requires updates to tests. needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. good first issue Issues that can be worked on by contributors new to calcite-components. and removed needs triage Planning workflow - pending design/dev review. labels Jan 22, 2024
@brittneytewks brittneytewks removed the needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. label Apr 3, 2024
@josercarcamo josercarcamo self-assigned this Apr 18, 2024
@josercarcamo josercarcamo added 2 - in development Issues that are actively being worked on. and removed 0 - new New issues that need assignment. labels Apr 18, 2024
josercarcamo added a commit that referenced this issue Apr 24, 2024
**Related Issue:** #6344

## Summary
Adds a method to navigate to the first, last, and an arbitrary page.
@josercarcamo josercarcamo added 3 - installed Issues that have been merged to master branch and are ready for final confirmation. and removed 2 - in development Issues that are actively being worked on. labels Apr 24, 2024
Copy link
Contributor

Installed and assigned for verification.

@github-actions github-actions bot assigned geospatialem and DitwanP and unassigned josercarcamo Apr 24, 2024
@DitwanP
Copy link
Contributor

DitwanP commented Apr 25, 2024

🍡 Verified on 2.8.0-next.10
https://codepen.io/Ditwan-Price/pen/MWRxjEX?editors=1011

@DitwanP DitwanP closed this as completed Apr 25, 2024
@DitwanP DitwanP added 4 - verified Issues that have been released and confirmed resolved. and removed 3 - installed Issues that have been merged to master branch and are ready for final confirmation. labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - verified Issues that have been released and confirmed resolved. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. enhancement Issues tied to a new feature or request. estimate - 3 A day or two of work, likely requires updates to tests. good first issue Issues that can be worked on by contributors new to calcite-components. p - low Issue is non core or affecting less that 10% of people using the library
Projects
None yet
Development

No branches or pull requests

7 participants