customized the page jump template in resources/views/vendor/custom.blade.php, {{$controls- > links ("vendor/pagination/custom")}} to render the page, but the jump action does not know how to write in JS? Or is there another solution?
<a href="{{ $paginator->previousPageUrl() . "&limit=" . $paginator->perPage() }}"></a>
The source code is written this way, but the jump is an input,$paginator is a php variable layout how to concatenate this a link, there may be another way.
{{-- --}}
<ul class="pagination pagination-sm no-margin no-padding pull-right">
<li>
<span data-toggle="tooltip" data-placement="bottom" title="">
<input type="text" class="text-center no-padding" value="{{ $paginator->currentPage() }}" id="customPage" data-total-page="{{ $paginator->lastPage() }}" style="width: 50px;"> / {{ $paginator->lastPage() }}
</span>
</li>
<li>
<span data-toggle="tooltip" data-placement="bottom" title="">
<input type="text" class="text-center no-padding" value="{{ $paginator->perPage() }}" id="customLimit" data-total="{{ $paginator->total() }}" style="width: 50px;"> / {{ $paginator->total() }}
</span>
</li>
</ul>
<script>
this is the jump input box,
<ul class="pagination no-margin pull-right">
{{-- --}}
@if ($paginator->onFirstPage())
<li class="disabled">
<span></span>
</li>
@else
<li>
<a href="{{ $paginator->url(1) . "&limit=" . $paginator->perPage() }}"></a>
</li>
@endif
{{-- --}}
@if ($paginator->onFirstPage())
<li class="disabled">
<span></span>
</li>
@else
<li>
<a href="{{ $paginator->previousPageUrl() . "&limit=" . $paginator->perPage() }}"></a>
</li>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
<!-- "Three Dots" Separator -->
@if (is_string($element))
<li class="disabled"><span>{{ $element }}</span></li>
@endif
<!-- Array Of Links -->
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<li class="active"><span>{{ $page }}</span></li>
@else
<li><a href="{{ $url . "&limit=" . $paginator->perPage() }}">{{ $page }}</a></li>
@endif
@endforeach
@endif
@endforeach
{{-- --}}
@if ($paginator->hasMorePages())
<li>
<a href="{{ $paginator->nextPageUrl() . "&limit=" . $paginator->perPage() }}"></a>
</li>
@else
<li class="disabled">
<span></span>
</li>
@endif
{{-- --}}
@if ($paginator->hasMorePages())
<li>
<a href="{{ $paginator->url($paginator->lastPage()) . "&limit=" . $paginator->perPage() }}"></a>
</li>
@else
<li class="disabled">
<span></span>
</li>
@endif
</ul>
this is the code of the previous page, the first page, the next page, and the last page. The style shown is as follows:
what I want to achieve is that after the first input box is entered, press enter to automatically jump to the specified page and ask for guidance!