Answers for "determine text truncate javascript"

1

determine text truncate javascript

/**
 * Check if an element is truncated.
 */
function isTruncated(el) {
  return el.scrollWidth > el.clientWidth
}
Posted by: Guest on November-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language