-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb85c84
commit d3a2cf3
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
# Nova Scroll Top | ||
On route change scroll to the top of the page. You can install this package via:<br> | ||
`` composer require tanmuhittin/nova-scroll-top `` | ||
On route change scroll to the top of the page. On 422 error scroll to the first erroneous field.<br> You can install this package via:<br> | ||
`` composer require tanmuhittin/nova-scroll-top `` | ||
|
||
If you do not want to use scroll to erroneous field trait or scroll to the top on page load trait you can set this on config file. First publish it via:<br> | ||
`` php artisan vendor:publish --provider=TanMuhittin\NovaScrollTop\ScrollTopServiceProvider `` | ||
|
||
``` | ||
/** | ||
* Scroll to the top of the page on route change | ||
*/ | ||
'on_route_change' => true, | ||
/** | ||
* Scroll to the first erroneous field on 422 ajax errors | ||
*/ | ||
'on_error' => true, | ||
``` |