How can I move the Tabulator pagination element from the footer to the header?

By default the pagination controls are added to the footer for Tabulator tables. I would like to instead have the controls in the header.

This is possible from JS by using the paginationElement option. It expects a DOM node or a CSS selector element eg document.querySelector(".example");.

panel allows some configuration via the configuration argument. This is fine if I want to pass (for example) a string. But how do I pass a CSS selector element? Is there a clever workaround that anyone can think of?