Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Add ellipsis after some letter in Phone gap

[ Edited ]

Use this code,
I have already use this code in Javascript and its working fine,

var TypName = "Pass the String";

			if (TypName.length > 25)
				TypName = TypName.toString().substring(0, 25) + "...";

//Here I am Using the ellipsis after 25 letter.


Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.