SPFX extension – Modal Dialog Box – Download as PDF – Part 2

This is the second blog in our ‘Download PDF‘ SPFX extension blog series. In this blog, we will create a custom Modal dialog box (popup) which will cover the SharePoint page and will prevent the end-users from repeatedly clicking on the ‘Download PDF‘ button. We will use the @microsoft/sp-dialog class for showing ‘Modal‘ dialog box on the page using basic ‘HTML‘ and ‘CSS‘. So without wasting any further time, lets start with developing our Dialog box.