I am working with one of the core component (download component v2).
When I author the dialog with any file, it shows file name, file size along with download option.
My requirement is that, I have added a checkbox under properties tab under download component.
When checkbox is selected while authoring, only then the file size property should show up, and if checkbox is not selected, it should not show file size info for download component.
I have added checkbox under properties tab of download component and wrote a slingmodel to get the checkbox node property to sling model.
Can someone let me know how can I get the desired result as mentioned above from here Please? Also help me with code to accomplish this requirement? Thanks in advance!