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

issue #333; Feature- button in table to toggle datatype visibility #346

Conversation

flashpunch0-0
Copy link
Contributor

The current state of the project does not allow to toggle datatype visibility in table.
image

the new update will allow it to make the visualization look more clean.

changes done :
1- added a useState to toggle the value
image

2- Added a button with eyeiconopened and eyeiconclosed
image

image

3- added a popover above the icon to provide information about the button
image

4- changes the snippet code in field function
field function
image

updated code -
image

flow of usage - hover (get information) -> click (toggle viibility and eye icon changes)
Works for each table

Copy link

vercel bot commented Feb 25, 2025

@flashpunch0-0 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Feb 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawdb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 25, 2025 11:13am

@flashpunch0-0
Copy link
Contributor Author

@1ilit hey could you review the pr and if useful then merge it

Copy link
Member

@1ilit 1ilit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @ian-barker, i think it would make more sense to have a showDataTypes setting in the SettingsContext which can be toggled form the view menu. You can look at how any other togglable settings field is implemented

@flashpunch0-0
Copy link
Contributor Author

flashpunch0-0 commented Mar 14, 2025

yeah sure I'll take a look at some toggable settings and try to bring some possible changes

@1ilit
Copy link
Member

1ilit commented Mar 14, 2025

@flashpunch0-0 let me know if there's anything i can help with

@1ilit 1ilit linked an issue Mar 15, 2025 that may be closed by this pull request
@1ilit 1ilit closed this Mar 16, 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.

[FEATURE] Hide data types
2 participants