SwissUpLabs Logo

Argento tabs

Argento tabs - is a script wrapper around mage/tabs that allows you easily transform any custom content into tabs.

Typical markup for blocks that will be tranformed into tabs:

<div class="argento-tabs product data items" data-mage-init='{"argentoTabs": {}}'>
    <div class="block">
        <div class="block-title">Block 1</div>
        <div class="block-content">Block 1 content</div>
    <div class="block">
        <div class="block-title">Block 2</div>
        <div class="block-content">Block 2 content</div>
    <div class="block">
        <div class="block-title">Block 3</div>
        <div class="block-content">Block 3 content</div>

data-mage-init='{"argentoTabs": {}}' - is a standard way to run javascript widget written according to magento guides.

Following options are supported:

Option Default Value Description
collapsibleElement .block-title Tab title selector
content .block Tab selector (Block that holds content and title)
openedState active Css class for active tab

Custom options usage example:

data-mage-init='{"argentoTabs": {"collapsibleElement": ".title", "content": ".item"}}'


Tabs and store achievements

<div class="argento-grid row block-products-promo">
    <div class="blocks-main item col-md-8 argento-tabs" data-mage-init='{"argentoTabs": {}}'>
        {{widget type="Swissup\Highlight\Block\ProductList\NewList" title="New Products" products_count="6" column_count="3" order="default" dir="desc" template="Swissup_Highlight::product/list.phtml" mode="grid" show_page_link="1" page_link_title="View All New Products"}}
        {{widget type="Swissup\Highlight\Block\ProductList\Onsale" title="Special Offers" products_count="6" column_count="3" order="default" dir="desc" template="Swissup_Highlight::product/list.phtml" mode="grid"}}
        {{widget type="Swissup\Highlight\Block\ProductList\Attribute\Yesno" title="Coming soon" attribute_code="coming_soon" products_count="6" column_count="3" order="default" dir="asc" template="Swissup_Highlight::product/list.phtml" mode="grid"}}
Next up
Edit this Page