Do we have a widget in mendix for read more functionality to shrink large text?

0
Hi Experts,   Actually I have a requirement like in the attached screenshot. where I should have a button like this on the card which shrinks the large text and on click expands the same.  Is there any widget like this in the market place or have any other way to achieve the same?   Thanks in advance for the help :)
asked
2 answers
0

Hi ,

 

I came across this widget that might be exactly what you're looking for:

Check it out here:

https://marketplace.mendix.com/link/component/114739

Let me know if it suits your needs, or if there's anything else I can help with.

answered
0

Hi, you can solve this in several ways. You pretty much only need a boolean attribute called _IsCollapsed and either a non persistable helper entity or on a persistable entity and making sure it's never committed with the boolean set to true.

Use the Text widget, and with a decision in the caption template you can do either a substring or the whole text. It could look something like this:

image.png

And the read more button would toggle the boolean, and only be visible if the text is collapsed

answered