Idea React
    Preparing search index...

    Class TextTruncate

    Hierarchy

    Index

    Constructors

    Properties

    contentRef: RefObject<HTMLParagraphElement> = ...
    displayName: string = 'TextTruncate'

    Accessors

    expanded: boolean
    overflowed: boolean

    Methods

    • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

      Returns void

    • Called immediately after updating occurs. Not called for the initial render.

      The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

      Parameters

      Returns void

    • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

      Returns void