Hi everyone.
I was working with Tabs in foundation-apps and came into a situation where I needed to switch tabs from outside of them. Actually, I needed to make ng-swipe-left/right change the actual view of the tabs component.
For that, I've studied the structure of Tabs.js. There I found that setting an attribute "id='idName'" to the div "zf-tab" <div zf-tab="" id="idName" title="something"> and then calling FoundationApi.publish(idName,'show'); from my controller would solve the problem.
So now, I what suggest here is just to add this information inside the Tabs Docs site explaining about FoundationApi in tabs, since the explanation about FoundationApi.publish in "Angular modules" of the Docs does not make it directly clear.
Hi everyone. I was working with Tabs in foundation-apps and came into a situation where I needed to switch tabs from outside of them. Actually, I needed to make ng-swipe-left/right change the actual view of the tabs component. For that, I've studied the structure of Tabs.js. There I found that setting an attribute "id='idName'" to the div "zf-tab"
<div zf-tab="" id="idName" title="something">
and then callingFoundationApi.publish(idName,
'show');
from my controller would solve the problem. So now, I what suggest here is just to add this information inside the Tabs Docs site explaining about FoundationApi in tabs, since the explanation about FoundationApi.publish in "Angular modules" of the Docs does not make it directly clear.