Skip to content

Conversation

@seven-of-eleven
Copy link
Contributor

Context

Added the ability to show/hide the formula icons in the table widget view under "Grid Options". While the formula icon is very handy when creating, setting up, and editing tables, it can take up considerable screen space. This option allows the user to hide the icons when desired to improve table layout.

Proposed solution

I added a checkbox under the "Grid Options", which is available for table widgets. The checkbox is activated by default to conform with the default app behaviour. So it will default to showing the formula icon (or "="). The end user can deselect the checkbox to hide the formula icons, providing additional space for their data to be displayed.

The checkbox added under "Grid Options". It triggers a css class to be added to the 'field-icon' div. The new class (record-icon) controls the "=" (formula icon) when it is within a formula field. A new class was created so that the field-icon class could be still be used for icons in non formula fields. The CSS was updated to use the new class, and adjust for some class changes that occur when a the editor to the "Expand Editor".

Related issues

Related to #1365

Has this been tested?

I added a test to the GridOptions.ntest.js, but this is the first time I've added a test. I followed the existing structure of the file but please check that I did it right.

  • [x ] 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this is not relevant here
  • 🙋 no, because I need help

Screenshots / Screencasts

Showing two tables with formula-icons and two without.
image

seven-of-eleven and others added 18 commits February 22, 2025 16:18
…nd + / or click outside the popup window for it to hide again.
…restored and reomved some comments as requested, and code adjustments as requested. Added onClickOutside function to domUtils.ts to dismiss the help window. Restored DocApiTypes-ti.ts as it was unrelated to this request.
…cons can only be hidden in table view, reappear when the field is edited.
…a cell/field, and renamed the fieldIcon property to formulaIcon for clarity (as there is already a field-icon class).
@paulfitz paulfitz added the preview Launch preview deployment of this PR label Mar 11, 2025
@github-actions
Copy link
Contributor

Deployed commit a39493809a0db0d7c461856ba75f9056bf3c4381 as https://grist-seven-of-eleven-grist-core-gridicons.fly.dev (until 2025-04-10T13:29:43.316Z)

@johnsturgeon
Copy link

Looking forward to seeing this land!

@berhalak berhalak removed the preview Launch preview deployment of this PR label Sep 2, 2025
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.

4 participants