Gets a header as a UI.Components.ModularHeader object whose items are component objects. Warns and returns null when it does not exist. The default UI has the headers 'default-top-header' and 'tools-header'.
UI.Components.ModularHeader
'default-top-header'
'tools-header'
The dataElement of the header.
The header, or null.
null
const header = instance.UI.getModularHeader('default-top-header');header.setJustifyContent('space-between');console.log(header.getItems().map(item => item.dataElement)); Copy
const header = instance.UI.getModularHeader('default-top-header');header.setJustifyContent('space-between');console.log(header.getItems().map(item => item.dataElement));
Gets a header as a
UI.Components.ModularHeaderobject whose items are component objects. Warns and returns null when it does not exist. The default UI has the headers'default-top-header'and'tools-header'.