Skip to content

[Bug]: Individual tab styles in multisheet does not work #4287

@boxsnake

Description

@boxsnake

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1.62

What version of Laravel are you using?

11.36.1

What version of PHP are you using?

8.3.17

Describe your issue

When using WithMultipleSheets, only WithDefaultStyles, WithStyles on the outer class works.

// outer.php
class DemoSheets implements
    WithMultipleSheets,
    WithDefaultStyles,
    WithStyles
{
    public function sheets(): array
    {
        return [ new DemoTab() ];
    }
}

// inner.php
class DemoTab implements
    WithDefaultStyles,
    WithStyles
{
}

How can the issue be reproduced?

Can be reproduceable as descibed above.

The function styles and function defaultStyles in DemoSheets works, but the functions in DemoTab is never invoked.

What should be the expected behaviour?

Styles in tabs can also work as that perform in single tab exporting process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions