lentschi / ngx-ellipsis

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

Nr. of lines option? #7

Closed casni14 closed 6 years ago

casni14 commented 6 years ago

Is it possible to set a fixed number of lines e.g. 2? I can't seem to find it in the readme

lentschi commented 6 years ago

@casni14 No sorry, there is no specific setting for that. However you can easily achieve this by limiting the container's width and height using css. How many lines of text will fit in it is determined by line-height (and padding if any).

casni14 commented 6 years ago

Ahh nice, thank you for the quick response :) Maybe you should add that in the readme?