Return the text cut if length is above maxLength arg and add endTextIfTooLong at the end.
maxLength
endTextIfTooLong
The text to cut if it is too long.
The maximum length required.
The end text to add if it is too long.
Generated using TypeDoc
Return the text cut if length is above
maxLength
arg and addendTextIfTooLong
at the end.