Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: fast-excel export cell styling via exportFormat #186

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

Merged
merged 2 commits into from
Sep 2, 2024
Merged

Conversation

yajra
Copy link
Owner

@yajra yajra commented Sep 2, 2024

Since fast-excel v5.5.0, per cell styling is now supported.

This PR aims to support export format styling:

Usage

In your DataTable class, enable fastExcel then define the export format in your column definition.

    protected bool $fastExcel = true;

    public function getColumns(): array
    {
        return [
            \Yajra\DataTables\Html\Column::make('created_at')->exportFormat('mm/dd/yyyy'),
        ];
    }

Copy link

sonarqubecloud bot commented Sep 2, 2024

@yajra yajra merged commit 44d7ada into master Sep 2, 2024
10 checks passed
@yajra yajra deleted the patch-1 branch September 2, 2024 09:32
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