-
Notifications
You must be signed in to change notification settings - Fork 35
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
Programmatic Toggling #116
Comments
Hi @markjohnson4! Quite hard to understand. Do you have any screenshot? |
Hi! Sorry, my "some context" is too confusing. I think it's simpler to simpler to illustrate what I want with this: if(condition) { are there functions like this that can "toggleOn" or "toggleOff"? thanks! |
Hi! Maybe you could find a solution using the hooks? https://twikito.github.io/easy-toggle-state/#hooks |
Hi! I mean a method to trigger a toggle state. Like bootstrap modals can be opened with the JavaScript: myModalElement.modal('show'). Is there something like myToggleElement.toggle('show")? here's the bootstrap modal example I'm talking about: https://getbootstrap.com/docs/4.0/components/modal/#modalshow thanks! |
|
Is it possible to trigger a method that toggles an element so I can toggle it via some custom javascript logic?
Some context: I have a table with a button in a tr element that, when clicked, displays "child" tr elements (from the DOM's perspective, though, these tr elements are sibling elements). each of those child tr elements also has a button that displays their own "child" elements. If I toggle the top-level tr button to hide its children, I want to also hide its grandchildren. Does that make sense?
The text was updated successfully, but these errors were encountered: