Code Monkey home page Code Monkey logo

Comments (8)

mysalf4498 avatar mysalf4498 commented on June 6, 2024 2
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.

rappasoft avatar rappasoft commented on June 6, 2024 1

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.

rappasoft avatar rappasoft commented on June 6, 2024
Column::make('ID')
    ->searchable()
    ->sortable(),

from laravel-livewire-tables.

hemant17 avatar hemant17 commented on June 6, 2024
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.

hemant17 avatar hemant17 commented on June 6, 2024

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.

hemant17 avatar hemant17 commented on June 6, 2024

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.

jazz7381 avatar jazz7381 commented on June 6, 2024

why this issue is closed?

from laravel-livewire-tables.

ikramsyakir avatar ikramsyakir commented on June 6, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.