When I go to a record with attached files, I can click on anything in the "Files" related list. This pulls up a full screen preview of the file, darkening the remainder of the screen, with buttons to do things with the file such as download or share.
But I haven't been able to find anything to give a similar preview programmatically. I found
lightning:fileCard, but that only shows a preview in a small component. I'm trying to create a custom file list where clicking the title opens a preview of the file.
How do I do this? Or can this even be done?