Forum Discussion

jobin's avatar
jobin
Contributor
12 years ago

How can i add tabs?

Hi, I would like to add a hide and show tab with two components. How can i achieve that?. Do we need to create a new widget for that?, In that case how can i customize the data?

2 Replies

  • By default Lithium components don't come with a "hide/reveal" functionality built in. So you would have to create a custom widget that does some JavaScript magic. But then you can simply include the stock Lithium component within the container. No need to recode these.

  • cblown's avatar
    cblown
    Boss
    12 years ago

    Create a custom component and include the builtin components like this (or your own). You can then use JS / CSS for the tab view

     

    <ul>
    <li>
    <@component id="forums.widget.recent-threads"/>
    </li>
    <li>
    ...
    </li>
    </ul>