Is it possible to have tabs that look like sub-navigation?
I want to have an edit page where I can change form by tabs that have the styling from sub-navigations. Is It possible?
6 Replies
Why not actually make separate pages for different form parts, with sub navigation, like Clusters?
well I use api's with sushi and switching from page to page, makes a little too much api requests.
so I want to use the js of the tabs with the sub-nav styling
No, unless you create your own component.
how do you make an component?
Sorry, I meant to ask, make your own livewire component?
livewire componentThat's explained in the Livewire docs. Not sure what your goal is in terms of UI. Subnavigation as in "separate navbar next to the main nav" or "items in main nav". If it's the second I think that requires some JS and feels hacky. If it's the first one you could customize the view and include your components. Not sure whether that would save you any queries to the API at all.
well my manager want/prefer the sub-nav side-nav styling. compared to the tabs. and he doesn't take no for an answer. π
and he wants this "separate navbar next to the main nav".