【问题标题】:How to disable tabbing in a tab panel in gwt如何在 gwt 的选项卡面板中禁用选项卡
【发布时间】:2009-03-31 06:34:07
【问题描述】:

我在 gwt 中有一个选项卡面板。我希望允许用户仅通过鼠标选择选项卡。对于这个我已经禁用了 tabpanle 中所有选项卡的 tabindex。我试过这段代码:

DOM.setElementAttribute(cdrMeseTabPanel.getElement(), "tabIndex", "-1" ); 

但它不起作用。

有什么想法吗?

【问题讨论】:

    标签: gwt tabpanel


    【解决方案1】:

    尝试将 tabIndex 设置为空属性:

    DOM.setElementAttribute(cdrMeseTabPanel.getElement(), "tabIndex", "" );
    

    【讨论】:

      【解决方案2】:

      只需完全删除标签索引,它对我有用。

      【讨论】:

        猜你喜欢
        • 2016-10-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-07-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多