Skip to content

New Toggler plugin#41966

Merged
mdo merged 5 commits intov6-devfrom
v6-toggler
Dec 29, 2025
Merged

New Toggler plugin#41966
mdo merged 5 commits intov6-devfrom
v6-toggler

Conversation

@mdo
Copy link
Member

@mdo mdo commented Dec 22, 2025

This was an effort by @GeoSot many moons ago, and I'm just now bringing it back around. I tried adding in #41236, but that branch got unwieldy. So, new PR for the plugin and its docs.

In a nutshell, the toggler plugin is for toggling attributes and their values. Add and remove classes, other attributes, and more to the same element, another element (via data-bs-target), or to multiple other elements. What's neat is this is all JS, there's no additional CSS for this whatsoever.

Name maybe needs work. JS probably needs a refresh, too. Docs are serviceable currently.

@mdo mdo requested a review from a team as a code owner December 22, 2025 05:06
@mdo mdo added this to v6.0.0 Dec 22, 2025
@github-project-automation github-project-automation bot moved this to Inbox in v6.0.0 Dec 22, 2025
@mdo mdo merged commit f0788d5 into v6-dev Dec 29, 2025
12 checks passed
@mdo mdo deleted the v6-toggler branch December 29, 2025 19:03
mdo added a commit that referenced this pull request Jan 9, 2026
* Toggler compontent from upstrea PR

* Update docs

* Fix comments, data_key, and cleanup some code; add tests too

* bump

* edits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant