문제 설명
Foundation 탭이 초기화되었는지 확인하는 방법은 무엇입니까? (How to check if Foundation tabs are initialized?)
문서에 따르면 3개의 이벤트가 있습니다. https://get.foundation/ site/docs/tabs.html#js‑events 하지만 그 중 어느 것도 내가 찾고 있는 것이 아닙니다.
이상적으로는 Foundation 탭이 초기화된 후 함수를 호출하고 싶습니다.
참조 솔루션
방법 1:
Every component fires an init
event.
See https://get.foundation/sites/docs/tabs.html#javascript‑reference
Fires these events: Tabs#event:init
The code is at https://github.com/foundation/foundation‑sites/blob/v6.6.2/js/foundation.core.plugin.js#L22
So you have to listen for init.zf.tabs
.
(by dekisha、Daniel Ruf)