0

I have 2 tabs in my application and to implement them I have used tomahawk's "t:panelTabbedPane". code is as follows:

     <t:panelTabbedPane  align="center"  width="100%" serverSideTabSwitch="false" selectedIndex="#{bean.selectedIndex}"  rendered="#{bean.someValue}">


            <t:panelTab  style="text-align:left;" label="Initiate New Access">

But here the problem is with alignment of text in tabs. My requirement is to show the text left aligned in tabs and to implement this I have written this:

    style="text-align:left;"

But still these tabs showing the text center aligned. Please help me to solve this problem...thanks in advance

4

2 回答 2

0

您想将哪个文本显示为左对齐?代码不完整。

您必须为显示文本的组件指定样式信息。

于 2013-07-09T06:52:55.220 回答
0

我认为您必须在<t:panelTabbedPane>组件中指定标签的样式,而不是在<t:panelTab>.

对于<t:panelTabbedPane>组件,您可以指定以下属性:

  • activeSubStyleClass
  • activeTabStyleClass
  • 非活动子样式类
  • 非活动标签样式类

我不确定这些属性中的哪一个会改变所需的样式。

这里有与<t:panelTabbedPane>组件相关的所有属性的描述,希望对您有所帮助: http: //myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_panelTabbedPane.html

于 2013-07-11T07:39:13.683 回答