How do I put line break in p:tooltip

jQuery UI Widgets
Post Reply
Marissa20
Posts: 1
Joined: 11 Feb 2019, 08:37

20 Feb 2019, 07:51

How can I put a line break to the tooltip prime faces component to separate the first line from the second line?

Code: Select all

<p:tooltip id="toolTip" for="idButton" value="First line Second Line" position="top"/>

barryallen1337
Posts: 1
Joined: 21 Aug 2019, 23:04

21 Aug 2019, 23:08

Why you're showing the message in an extra tooltip? Looks a bit strange.

Anyway, what you need is a <br/> where you want the line break and set escape="false" in your p:message.
message: shareit

Password should contain&#13;Minimum 8 characters&#13;1 <br/> Uppercase Password...
xhtml:

<p:message for="password1" escape="false"/>
https://get-vidmateapk.com

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest