How to connect downloadHandler() with an item of navbarPage or navbarMenu?

Description of https://shiny.rstudio.com/reference/shiny/0.14/downloadHandler.html says: "in the UI use downloadButton or downloadLink to make the download available"
I would like to trigger a file download from a menu.
How do I connect downloadHandler() with an item of navbarPage or navbarMenu?