magento 2 tab init code example
Example: keep all tabs open in accordion in magento 2
<div id="element" data-mage-init='data-mage-init='{"accordion":{"openedState": "active", "collapsible": true, "active": [0,1,2], "multipleCollapsible": true}}'>
<div id="element" data-mage-init='data-mage-init='{"accordion":{"openedState": "active", "collapsible": true, "active": [0,1,2], "multipleCollapsible": true}}'>