Tabs elements not having the right API to work with

Hello everyone

Why does the tab element doesn’t have the tab API to work with?

Instead of the tab API https://www.wix.com/velo/reference/$w/tab/introduction it has the HidenCollapsedElement https://www.wix.com/velo/reference/$w/hiddencollapsedelement, which difficults a lot working with code-made tabs.

Does it has something to do with the mixin?

https://support.wix.com/en/article/velo-about-mixins

Thanks

1 Like

Good question! Experiencing the same issue. Is there any update on this issue?

Here so far I had no replies, but after contacting in the Discord, I have found out that it is just a visual bug, every function is well, functional, but yes, it is not so good to have “errors” in the code. In Editor X it seems it works well, but in Wix Editor it does not. A moderator told me “Yeah, I can confirm the team is aware and working on fixing the bug”

Hopefully this helps you: (It will say it has errors, just ignore it and run the page anyway)

        $w ( "#tabs1" ). changeTab($w ( '#singleTab1' )) 
            . then (() => { 


            }); 


$w ( "#tabs1" ). onChange (( event ) => { 

     **let**  myCurrentTab  =  $w ( "#tabs1" ). currentTab ; 

// Ignore the errors marked as “Property ‘…’ does not exist on type ‘HiddenCollapsedElement’.”

});

Maybe you did not find this post before…

Just few days ago!