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

Index for header reference #107

Open
dkarlovi opened this issue Jan 6, 2021 · 1 comment
Open

Index for header reference #107

dkarlovi opened this issue Jan 6, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@dkarlovi
Copy link
Collaborator

dkarlovi commented Jan 6, 2021

If there are multiple times the same header is used, allow to add a numeric designation, example

    /**
     * @XLS\HeaderReference(header="Status", index=0)
     */
    public $status;

    /**
     * @XLS\HeaderReference(header="Status", index=1)
     */
    public $statusLabel;
@dkarlovi dkarlovi added the enhancement New feature or request label Jan 6, 2021
@dkarlovi
Copy link
Collaborator Author

dkarlovi commented Jan 6, 2021

Alternatively, something like

    /**
     * @XLS\ExpressionReference(expression="header('Status')[0]")
     */
    public $status;

    /**
     * @XLS\ExpressionReference(expression="header('Status')[1]")
     */
    public $statusLabel;

@dkarlovi dkarlovi added this to the 0.7 milestone Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant