toggle display instead of show + hide display
See original GitHub issueMay i make a quick suggestion about a design choice I’ve seen in the repo? I’ve noticed that whenever we need to show/hide some gui, the interface has tended to use two commands, e.g. show formatters
and hide formatters
. May i suggest that we try to use just one command instead, e.g., toggle formatters
(or formatter display etc)?
The main reason is that the fewer the number of voice commands one has to remember, the better. But this may just be a purely stylistic preference.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
button toggle display show hide - javascript - Stack Overflow
Try with the following code: #first{ display: block; /* <--- change */ } #second { display: none; } const firstDiv = document.
Read more >How To Toggle Between Hiding And Showing an Element
Toggle between hiding and showing an element with JavaScript. Toggle Hide and Show. Click the button! Toggle (Hide/Show) an Element. Step 1) Add...
Read more >Toggle (Show/Hide) Element - JavaScript - CSS-Tricks
Instead of using visibility:hidden, use display:none; so this by default hide you'r element, and create such animation that can slideToggle ...
Read more >Hide and Show Div / Element using JavaScript Css - YouTube
Web/Fullstack Development Tutorial: Hide and Show Div using JavaScript & Css#hideshow #javascript # toggle ...
Read more >jQuery using the show, hide and toggle effects - YouTube
The show and hide effects allow you to quickly control the CSS display property on elements using jQuery, this allows you to tie...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve moved everything I can to this approach. I chose not to use toggle here since I personally find “toggle” tiresome.
Fwiw I do hesitate to support both in any single app, at least in my depot, just so the grammar is kept small.