lentschi / ngx-ellipsis

Multiline text with ellipsis for angular 9+
MIT License
96 stars 22 forks source link

Add an option of a (click) handler when clicking the ellipsis #12

Closed razfazz closed 5 years ago

razfazz commented 6 years ago

Many thanks for this great library. This is a suggestion for a new feature. Add an option of a (click) handler when clicking the ellipsis would be very useful. Someone would have the possibility to display a dialog with the whole text then.

lentschi commented 6 years ago

Hi!

Thanks for your feedback! Well, you can already use (ellipsis-click-more). But I guess, what you want is to be able to click anywhere on the text (not on some link at the end) and get some reaction...? If so, did you try just adding (click) on a surrounding div? Then you could just toggle the contents to be something using ellipsis or an element containing the complete text.

Am 5. November 2018 15:25:07 MEZ schrieb smedasn notifications@github.com:

Many thanks for this great library. This is a suggestion for a new feature. Add an option of a (click) when clicking the ellipsis would be very useful. Someone would have the possibility to display a dialog with the whole text then.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/lentschi/ngx-ellipsis/issues/12

razfazz commented 5 years ago

thx you, it was my fault