How can you implement a feature that displays a multi-paragraph synopsis on a screen, initially showing only the first paragraph, and allows users to click on the "Show More" and "Show Less" buttons to expand or collapse the content as needed?
A. Have the first paragraph on screen and the remaining data and add that in container. Use a Boolean value to show and hide the remaining data.
B. By using Accordion. Add the initial paragraph to display in accordion’s title add the remaining data to it and accordion will take care of everything.
C. Use custom CSS. Create a container. Change its property using CSS hide/show.
D. Use custom JavaScript.
Hi Shubham,
To my understanding, option A seems to be correct. However, you can go through the screen best practices documentation here.
Thanks,
Mayur