Toggle button text with collapse

How do I toggle the test of a button based on the shown state of a collapse. I have tried setValue when shown but that did not work. What I am trying to accomplish is a Read more…, Read Less… Button.

Community Page
Last updated: