Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Trims the given string based on the given cut off value; adding an ellipsis if required.
Srch.U.truncateEnd(original, maxChars)
Return value
The truncated result if the given string is longer than the cut off value; otherwise the same string will be returned.
Parameters
original
The string to trim.maxChars
The maximum allowed length, after which the string will be trimmed.