Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Loop multiple tables in one sheet (with differet Heading) #27

Closed
Alkasih opened this issue Apr 6, 2021 · 1 comment
Closed

Loop multiple tables in one sheet (with differet Heading) #27

Alkasih opened this issue Apr 6, 2021 · 1 comment
Labels
question Further information is requested

Comments

@Alkasih
Copy link

Alkasih commented Apr 6, 2021

Is there any way to loop multiple tables with same header but different category? How?

This may need 3-5 rows break for the next loop

for($i = 0; i < 4; i++ ) {
$exporter = new Spreadsheet([
    'dataProvider' => new ArrayDataProvider([
        'allModels' => [
            [
                'id' => 1,
                'name' => 'first',
            ],
            [
                'id' => 2,
                'name' => 'second',
            ],
        ],
    ]),
    'columns' => [
        [
            'class' => SerialColumn::class,
        ],
        [
            'attribute' => 'id',
        ],
        [
            'attribute' => 'name',
        ],
    ],
])->render();
//Neds some break rows here...
}
@klimov-paul
Copy link
Member

No, there is none.

@klimov-paul klimov-paul added the question Further information is requested label Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants