I have an HTML page that has an option for drag-n-drop and a "Preview" button. I want to call a function on the click
event of that button, which will fetch all the files that are dragged onto the page. When I press this button, it opens a <px-modal>
(a popup which displays some data), and it has a dropdown (<paper-dropdown>
and <paper-item>
), which should display the filename fetched earlier.
So I have the data, but I don't know how to store it or display it as dropdown content.
I have tried the <template>
tag, but it fires on page-load when I need it to fire after the files are dropped onto the page. Otherwise, the data is null
.
How do I solve this?