@extends('../layout/' . $layout) @section('subhead')
const myTab = tailwind.Tab.getOrCreateInstance(document.querySelector("#myTab"));
const myTab = tailwind.Tab.getInstance(document.querySelector("#myTab"));
myTab.show();
Event type | Description |
---|---|
show.tw.tab | This event fires immediately when the show instance method is called. |
hide.tw.tab | This event is fired immediately when the hide instance method has been called. |
const myTabEl = document.getElementById('myTab')
myTabEl.addEventListener('hidden.tw.tab', function (event) {
// do something...
})