SideBar
The SideBar is a panel used for interactions directly related to the main
Content
, such as filtering and sorting a list of items.
Assign data-ts="SideBar"
to an aside
to initialize as a
SideBar. The SideBar must be created with a child Panel
.
TODO: Something special here for mobile breakpoint.
Before we dive into the SideBar features, here is the most important observation.
The SideBar will automatically become hidden in the mobile breakpoint.
The SideBar is hidden now, but you can open it if you like.
SideBar tabs
SideBar tabs can be declared in the HTML via
Panels
and label
attributes as seen in
.
— or they can injected programatically via the
tabs
method. Remember that programatically cretated tabs don't do
anything by default, so you will have to implement your own content switching
mechanism via the onselect
callback.
Here"s a summary of the tabs
collection and tab
model.
SideBar footer
You can insert a footer
in the SideBar for whatever purpose you can
imagine. Note that if your SideBar features tabs, you may want to manually toggle
the display
of one or more footer
elements, since that
doesn't happen automatically. Tab change can be intercepted with the
onselect
callback.
Nested Aside
Asides can be nested directly inside the SideBar if they are relevant for the
SideBars functionality. You can just
open
and close
them like you would with a
regular Aside.