autoCollapse

fun autoCollapse(text: String, maxLength: Int)

Automatically collapses a text if its length exceeds maxLength.

See also