Replaces all headers with the given ones; headers not in the list are removed. Items registered before are kept and can still be referenced.
A header or an array of headers.
// Keep only the default top headerinstance.UI.setModularHeaders([instance.UI.getModularHeader('default-top-header')]); Copy
// Keep only the default top headerinstance.UI.setModularHeaders([instance.UI.getModularHeader('default-top-header')]);
Replaces all headers with the given ones; headers not in the list are removed. Items registered before are kept and can still be referenced.