You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Truncate component requires trailingNumChars when truncating in the middle. It would be helpful if the component were also able to automatically truncate to where the truncate would leave equal (+-1) characters on either side.
Activity
jenny-s51 commentedon Nov 22, 2024
FYI, PF Topology has a
truncateMiddleutil but since it's not currently exported inindex.tsit isn't available for consumers to import outside of PF Topology.Moving this util to https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/helpers/util.ts would be a nice simple fix that would allow consumers to import this functionality.
github-actions commentedon Jan 22, 2025
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
christianvogt commentedon Jan 22, 2025
bump