-
Notifications
You must be signed in to change notification settings - Fork 134
Fix: Improved first last buttons behavior in pagination component #364
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
Conversation
Improved dealing with custom templates in the component
WalkthroughThis pull request adds a new section to the pagination documentation demonstrating the "first" and "last" page navigation. A new Vue component ( Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant P as FwbPagination
participant S as State (currentPage)
U->>P: Click "First Page" button
P->>S: Execute goToFirstPage()
S-->>P: Update currentPage = 1
P->>U: Refresh UI
U->>P: Click "Last Page" button
P->>S: Execute goToLastPage()
S-->>P: Update currentPage = totalPages
P->>U: Refresh UI
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for sensational-seahorse-8635f8 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hey, good catch. I've tested it and it works as expected now. Would be great if we could add an example where slots are properly used... using
@andreyjamer Let me know if you can add something like that to the docs... or you want me to do it. |
@Sqrcz Sure, I'll add it |
@Sqrcz I added Advanced slots example with custom button usages. It provides the example of all properties for different slots of pagination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This makes it way easier to understand/use... 👏
Current implementation is lacking slot properties and doesn't check if icons are enabled for the component for first/last buttons.
Also internally slots check is wrong.
Added first last buttons example to documentation
Summary by CodeRabbit