Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 257147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:04:22+00:00 2026-05-11T22:04:22+00:00

It seems like there should be, but I’ve looked over the API and nada.

  • 0

It seems like there should be, but I’ve looked over the API and nada. I don’t see how it’s done in 2.x. Currently, I store references with the elements to the tab and tabview objects via jQuery’s data method.

The why: When I interact with the tabs via mouseovers and clicks, I need to be able to reference the YUI tab/tabview objects’ properties & methods. Since I’m using event delegation b/c I have so many tabs (tabs within tabs), I’m not directly attaching (potentially hundreds of) event listeners, and thus I don’t have access to the tabs and tabviews via the this symbol.

There’s a corresponding method for buttons (YAHOO.widget.Button.getButton) but not one for tabs unless I’m missing something obvious.

Additionally, it seems that if I have a tab object, there’s not a reference to the tabview. Once again, I create my own reference, but I assume there should be a reference or an accessor method already.

Can anyone shed any light on this? Anyone else approaching this differently?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:04:22+00:00Added an answer on May 11, 2026 at 10:04 pm

    The best place for YUI questions are the forums on yuilibrary.com.

    The YUI TabView component has event delegation built-in. Every Tab event is actually handled by the TabView that it belongs to. Each events is routed to the appropriate Tab, and the context of the handler is set to the Tab.

    This allows you to assign your listeners as you normally would:

    tabview.getTab(1).on(‘mouseover’, function(e) {
    console.log(e.target.innerHTML); // e.target === Tab Label Element
    console.log(this.get(‘label’)); // this === Tab instance
    });

    This works for nested TabViews as well.

    There is currently no binding between Tab and TabView except for the TabView’s “tabs” attribute. You can iterate this collection and compare your element to each Tab’s “element” attribute if there is a use-case for knowing which TabView it belongs to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem that seems like there should be a simple solution but
It seems like there should be something shorter than this: private string LoadFromFile(string path)
It seems like there should be a simpler way than: import string s =
It seems like there should be a better way to code this: HTML snippet:
It seems like there is a lot of overhead involved in rapidly opening and
Is there some easy way to pad Strings in Java? Seems like something that
Is there something like the Python descriptor protocol implemented in other languages? It seems
For iPhone game development, seems there are very like functions using CALayer and UIView,
Seems like a simple enough question but I can't seem to find the answer.
It seems like more and more OS X apps these days are doing all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.