zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 216 forks source link

Add useful information about Tabs in Docs site. #769

Open Vinggui opened 8 years ago

Vinggui commented 8 years ago

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.

givan2code commented 8 years ago

Thank you for this. You've helped!

soumak77 commented 8 years ago

this issue with be addressed with https://github.com/base-apps/angular-base-apps/issues/24