Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass row data as second argument of the "formatter" column option #136

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

Kreyu
Copy link
Owner

@Kreyu Kreyu commented Oct 5, 2024

Currently, the formatter option supports two arguments:

  1. data of the column
  2. an instance of the column

Getting an instance of the column as second argument should be moved to the third argument.

Second argument should receive row data instead:

'formatter' => function (string $fullName, User $user, ColumnInterface $column, array $options) {
    // ...
}

Copy link

cloudflare-workers-and-pages bot commented Oct 5, 2024

Deploying data-table-bundle with  Cloudflare Pages  Cloudflare Pages

Latest commit: 785f023
Status: ✅  Deploy successful!
Preview URL: https://c604c068.data-table-bundle.pages.dev
Branch Preview URL: https://feature-formatter-row-data.data-table-bundle.pages.dev

View logs

@Kreyu Kreyu merged commit cc07580 into main Oct 5, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant