Jump to content

How to implement ips.ui.truncate optional parameters?


SFN

Recommended Posts

Hi everyone!

I'm trying to truncate some forum descriptions to 2-3 lines and am not quite sure how to correctly implement this widget. I've gotten as far as wrapping the text with the code as seen below as an example. On my site, it truncated the text to 4 lines, but I see on the documentation that it's possible to modify the number of lines with some optional parameters; where in the code would I place these parameters and what's the syntax for it? Thanks in the advance!

<div data-ipstruncate="">
    <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...