F
Filament10mo ago
This PC

How to number the data in the table?

For example when I have 10 values ​​in the table with id from 11 to 20, how do I display the number from 1 to 10 instead of according to the id which is from 11 to 20?
4 Replies
This PC
This PCOP10mo ago
Thank you very much ❤️
aliif
aliif10mo ago
TextColumn::make('no')->state( static function (HasTable $livewire, stdClass $rowLoop): string { return (string) ( $rowLoop->iteration + ($livewire->getTableRecordsPerPage() * ( $livewire->getTablePage() - 1 )) ); } ),
This PC
This PCOP10mo ago
yes i solved that problem, many thanks for your help
Want results from more Discord servers?
Add your server