I don't think you can add a tabIndex to a TD or TH element. Try adding a DIV inside of your TH and add the tabIndex to DIV.
Also, you can use th.setTabIndex(0) to set the tabIndex directly instead of setting a property using the DOM class. Thanks, John LaBanca [email protected] On Wed, Nov 3, 2010 at 8:42 PM, Dave <[email protected]> wrote: > Hi all. > > > > I need to be able to tab through some TH tags I’ve added to my > customized FlexTable. > > I first create the element. > > Element th = DOM.createTH(); > > th.setId(DOM.createUniqueId()); > > The following line then successfully adds scope=”col” to the th > element. > > DOM.setElementProperty((com.google.gwt.user.client.Element) th, > "scope", "col"); > > I then tried to add tabindex=0 to the th element.I verified this > enables the tabbing via the w3c th tutorial even though I don’t see it > as a supported attribute. > > DOM.setElementProperty((com.google.gwt.user.client.Element) th, > "tabindex", "0"); > > This did not add the tabindex. I used Firebug to verify. > > Any ideas ? > > Thanks, > Dave > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
