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

@sortablelink Appending Hash Fragments #201

Open
VorkenNet opened this issue Aug 17, 2022 · 0 comments
Open

@sortablelink Appending Hash Fragments #201

VorkenNet opened this issue Aug 17, 2022 · 0 comments

Comments

@VorkenNet
Copy link

Hi Folks,
I'm an old man newby, so thank you in advance for all the help!

there is any way to append at the @sortablelink any kind of anchor

http://127.0.0.1:8000/items?sort=item_name&direction=asc#myItemListAnchor

my "table" is in the middle of the page, so ordering will push theuser again on top without any anchor...

I find something standard working for pagination on laravel_doc9.x.

https://laravel.com/docs/9.x/pagination#appending-hash-fragments

  • If you need to append a "hash fragment" to URLs generated by the paginator, you may use the fragment method. For example, to append #users to the end of each pagination link, you should invoke the fragment method like so:

there is any similar "trik" for @sortablelink?

Tnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant