イベントなしで、データ テーブルのいくつかの行にツールチップを自動表示する必要があります。属性 forSelector にどのような値を指定すればよいかわかりません。
<pe:tooltip value="Click to view More Datails"
forSelector="?" shared="true"
targetPosition="top center" position="left center"
autoShow="true" />
イベントなしで、データ テーブルのいくつかの行にツールチップを自動表示する必要があります。属性 forSelector にどのような値を指定すればよいかわかりません。
<pe:tooltip value="Click to view More Datails"
forSelector="?" shared="true"
targetPosition="top center" position="left center"
autoShow="true" />
自動表示プロパティを true に設定
<pe:tooltip value="AutoShow" autoShow="true"/>
このプロパティを backingbean 値にバインドできます...
<p:column id="ctipo3" headerText="Estado">
<p:commandButton id="estado"/>
<pe:tooltip id="toolTipTrack4" for="estado" value="#{item.texto}" autoShow="#{item.texto}"/>
</p:column>
データテーブルの行のツールチップを表示できるようにするには、ここに例を示します。
<pe:tooltip forSelector=".myTable tr[role=row][data-ri=#{rowIndex}]" value="#{project['myfield.tooltip']} #{obj.myfield}"/>
どこ:
styleClass="myTable"
rowIndexVar="rowIndex"
このツールチップは 内に追加されます<p:column>
。
Primefaces 拡張タグを使用できるようにするには、適切な xmlns を追加する必要があることに注意してください。
xmlns:pe="http://primefaces.org/ui/extensions"