Menu

Generation future feature: tabs

The next version of Generation (1.2) will have a new feature: the tabs which are marked with the .tab class. The tabs provides a way to use a single container to display multiples contents based on a user selection. The usage will be like (using pug to keep the example simple):

div.tab-container
    div.tab-header
        div.tab(data-tab-name="es")
            | Spanish
        div.tab(data-tab-name="en")
            | English
    div.tab-content
        div.tab(data-tab-name="es")
            p
                | Hola Mundo
        div.tab(data-tab-name="en")
            p
                | Hello World

The tab will not have any style, if you wand borders that separes the tab-header with the tab-body you need to add yourself the styles. This provides a useful way to customize the tabs.

Posted by Alejandro Linarez 2017-05-18 Labels: 1.2 tabs feature future

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.