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

Add disabled parameter to "Delete" tag and evaluate values before parsing #358

Merged

Conversation

vakssonya
Copy link
Contributor

We were faced with the task of making column deletion user-driven. To solve this, we added the disabled parameter for the Delete tag. Cases in which a column is deleted:

  • delete disabled=null
  • delete disabled=""
  • delete disabled="false" (or "false", "no", "no", "not", "null")

In other cases, the column will not be deleted.
To make this logic work, it was necessary to change the order of evaluating values and parsing tags, because in the current logic tags are parsed first, and because of this the disabled parameter does not contain custom values at the tag execution stage.

@Pankraty
Copy link
Member

Pankraty commented Jun 28, 2024

Can you please also create a merge request to gh-pages branch, extending the documentation (both en and ru versions)?

https://github.com/ClosedXML/ClosedXML.Report/blob/gh-pages/docs/en/More-options.md

@Pankraty Pankraty added this to the 0.2.11 milestone Jun 28, 2024
@vakssonya
Copy link
Contributor Author

Can you please also create a merge request to gh-pages branch, extending the documentation (both en and ru versions)?

https://github.com/ClosedXML/ClosedXML.Report/blob/gh-pages/docs/en/More-options.md

Done #359

@Pankraty Pankraty merged commit dbdd97b into ClosedXML:develop Jun 28, 2024
2 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.

2 participants