Code: Select all
<p:tooltip id="toolTip" for="idButton" value="First line Second Line" position="top"/>
Code: Select all
<p:tooltip id="toolTip" for="idButton" value="First line Second Line" position="top"/>
You can also use First line<br/>Second Line as the direct content of the p:tooltip. So you don't have to put it in two h:outputTexts separated by a `<br/> (although you can). And see my other answer. Effectively making both solutions overly complex.Marissa20 wrote: ↑20 Feb 2019, 07:51How can I put a line break to the tooltip prime faces component to separate the first line from the second line?
ogwhatsappCode: Select all
<p:tooltip id="toolTip" for="idButton" value="First line Second Line" position="top"/>
Hello everyone.johnamaro wrote: ↑06 Jan 2021, 14:05You can also use First line<br/>Second Line as the direct content of the p:tooltip. So you don't have to put it in two h:outputTexts separated by a `<br/> (although you can). And see my other answer. Effectively making both solutions overly complex.Marissa20 wrote: ↑20 Feb 2019, 07:51How can I put a line break to the tooltip prime faces component to separate the first line from the second line?
192.168.o.1Code: Select all
<p:tooltip id="toolTip" for="idButton" value="First line Second Line" position="top"/>
Users browsing this forum: No registered users and 1 guest