Comments (8)
Column::make("Id", "id")->format(fn () => ++$this->index + ($this->page - 1) * $this->perPage),
use this where you need index no or numbering
from laravel-livewire-tables.
I don't know why you would need this. What's the point of a incrementing number if you can't use it to identify a row?
from laravel-livewire-tables.
Column::make('ID')
->searchable()
->sortable(),
from laravel-livewire-tables.
Column::make('ID') ->searchable() ->sortable(),
thanks for the reply sir but I were asking for like seiral number not the database id
i mean that we normal use like count++
from laravel-livewire-tables.
I don't know why you would need this. What's the point of an incrementing number if you can't use it to identify a row?
yes sir some time you need that table data is for multiple users and multiple users are interesting the data in the database but when you show it to the user to look like 5,56,64 more like that which is not good
so I want to show them like the 1,2,3
from laravel-livewire-tables.
I don't know why you would need this. What's the point of an incrementing number if you can't use it to identify a row?
yes sir some time you need that table data is for multiple users and multiple users are interesting the data in the database but when you show it to the user to look like 5,56,64 more like that which is not good
so I want to show them like the 1,2,3
why closed ?
from laravel-livewire-tables.
why this issue is closed?
from laravel-livewire-tables.
Column::make("Id", "id")->format(fn () => ++$this->index + ($this->page - 1) * $this->perPage),
use this where you need index no or numbering
using label instead of formatting because its not associated with a database column.
from laravel-livewire-tables.
Related Issues (20)
- [Bug]: can not use cutom toolbar.blade.php HOT 5
- [Bug]: Cannot load css/js assets under a non-root URI HOT 2
- [Feature Request] ImageColumn - Conditional Rendering of IMG Tag HOT 2
- [Bug]: Loading placeholder not working HOT 2
- [Bug]: publishing assets not working HOT 2
- [Bug]: Uncaught ReferenceError: currentlyReorderingStatus is not defined HOT 4
- [Bug]: sortable() doesn't work when i use label HOT 4
- [Bug]: Trailing spaces get removed while typing in the search bar. HOT 1
- [Bug]: Livewire component in Datatable: Snapshot missing on Livewire component with id... HOT 3
- [Bug]: Artisan About: wrong version number HOT 2
- [Bug]: collapsing seems to be broken on table row because of the breakpoints that doesnt match with the one on table head HOT 5
- [Bug]: Search box and Column Per Page Dropdown can't read css style from tailwind HOT 1
- [Bug]: Per Page doesn't apply when returning to the table HOT 9
- [Bug]: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'user_id' in where clause is ambiguous HOT 1
- [Bug]: Multiple tables collapsible on mobile HOT 5
- [Bug]: reorder icon get displayed when sorting table HOT 2
- Dark mode only in the table HOT 1
- [Bug]: Page Refreshing before generating excel on bulk export HOT 2
- [Bug]: Items go missing when reordering HOT 2
- [Bug]: Search deosn't work when using mongodb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-livewire-tables.