Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Toggler active class needed #34

Open
Kainkainkain opened this issue Nov 5, 2020 · 1 comment
Open

Toggler active class needed #34

Kainkainkain opened this issue Nov 5, 2020 · 1 comment

Comments

@Kainkainkain
Copy link

Need class applied to the chosen toggler of .open .closed or simply .active
Then we can style the toggle control state, say with + or - for instance.

@karndt
Copy link

karndt commented Feb 25, 2023

Try this:
<v-collapse-wrapper @onStatusChange="accordionToggleStatusChange">

Then add a method:

    accordionToggleStatusChange(vm) {
      console.log("accordionToggleStatusChange: ", vm, vm?.vm?.$el, vm?.status, vm?.old_status);
      if (vm?.vm?.$el) {
        if (vm?.status) {
          vm.vm.$el.classList.add("open");
        } else {
          vm.vm.$el.classList.remove("open");
        }
      }
    },

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants