| Page 1 of 1 | [ 2 posts ] |
|
Hello,
I am new to YUI and am looking for some tips on linking content between tabs? So, for example, if I have 3 tabs, I would like to link from content within Tab 1 to a specific content anchor in Tab 3, and vice versa. Any ideas? |
|
Attach a click handler to the link in Tab 1 which first shows tab 3 and then scrolls to the anchor. Assuming YUI 3:
YUI().use('tabview', 'gallery-scrollintoview', function(Y) { var tabview = new Y.TabView(...); Y.on('click', function() { tabview.selectChild(2); Y.one('#anchor-in-tab-3').scrollIntoView(); }, '#link-in-tab1'); }); |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group