How can I represent an accordion's information in Typescript classes. I've a Product page which shows an accordion with its information. Each product, has its own accordion structure (different titles, subtitles, text content and images)
I'd show you how is the structure of this GUI element:
Also, I've two more scenarios:
- When expanded, It may be no subtitle, just text content.
- After a subtitle, It could have one or more images attached.
How could I represent this kind of information with Typescript Classes? I need some guidance.