Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 622 Bytes

File metadata and controls

17 lines (16 loc) · 622 Bytes

javascript-automatic-tab-module

creates tabs with few lines of code
need to add the class "autoTabsModule" for the container
and the class "tabsContent" for the tabs content container
the title for the tabs is generated in the tabs content element
via "data-tabs-title" attribute

<div class="autoTabsModule">
    <div class="tabsContent">
        <div data-tabs-title="title 1">content 1</div>
        <div data-tabs-title="title 2">content 2</div>
        <div data-tabs-title="title 3">content 3</div>
        <div data-tabs-title="title 4">content 4</div>				
    </div>
</div>