Skip to content

Set tooltips to export icons #114

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

Open
flang opened this issue Apr 19, 2024 · 0 comments · May be fixed by #177
Open

Set tooltips to export icons #114

flang opened this issue Apr 19, 2024 · 0 comments · May be fixed by #177
Labels
enhancement New feature or request

Comments

@flang
Copy link
Contributor

flang commented Apr 19, 2024

  • Assign default tooltip to export icons
  • Add an API so end users can override the default tooltips
@paodb paodb moved this to To Do in Flowing Code Addons May 6, 2024
@mlopezFC mlopezFC added the enhancement New feature or request label May 24, 2025
mlopezFC pushed a commit that referenced this issue May 25, 2025
Implements the ability to set default and specific tooltips for the
export icons (Excel, DOCX, PDF, CSV) in GridExporter.

Key changes:
- Added `setDefaultExportIconTooltip(String)` to set a general tooltip
  for all export icons.
- Added specific setters like `setExcelExportIconTooltip(String)` to
  customize tooltips for individual export types. Specific tooltips
  override the default.
- Tooltips are applied to the `Anchor` components in the `createFor`
  method. Passing `null` as a tooltip value effectively clears the
  tooltip (or falls back to default), while an empty string `""` sets an
  intentionally blank tooltip.
- Unit tests verify the internal state of tooltip configurations. Direct
  DOM testing of tooltip attributes was omitted to avoid adding
  test-specific fields to the component.
- Updated JavaDocs and README.md with details on the new feature.

Fixes #114
@mlopezFC mlopezFC linked a pull request May 26, 2025 that will close this issue
mlopezFC pushed a commit that referenced this issue May 26, 2025
Refactors the tooltip implementation in GridExporter.java to reduce
code duplication by introducing a helper method. Corrects the PDF
template parameter in createFor and removes an obsolete comment.
Updates README.md styling for tooltip documentation. Adds necessary
JUnit 5 and Mockito dependencies to pom.xml for test compilation.
Verifies that existing unit tests for tooltip internal state pass.

Addresses feedback from PR #177.
Related to #114.
@javier-godoy javier-godoy moved this from To Do to In Progress in Flowing Code Addons May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants