ellipsis (three dots) expand and collapse the text #13734
-
I want to make the extra text three dots (...) ellipsis and when i click the dots the text should expand and contract. But with the code used the text is only contracted but not expanding on click of dots |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
What code? |
Beta Was this translation helpful? Give feedback.
-
You can remove the class on click if you want to expand. |
Beta Was this translation helpful? Give feedback.
-
You cannot attach events to pseudo-content and dots here are pseudo-content. so make your own or you could find some hacky css solution. |
Beta Was this translation helpful? Give feedback.
You cannot attach events to pseudo-content and dots here are pseudo-content. so make your own or you could find some hacky css solution.
just to get the idea: https://stackoverflow.com/a/48854854