I have created Layout Panels/items with the property of headerButtons: [‘dock’] which from my reading of the API documentation implies that only the DOCK icon (the pin) should show.
If the LayoutPanel is immediately visible then yes only the DOCK (pin) icon is displayed. However, if the LayoutPanel/Tab Item is set to AutoHide and then it is brought back and docked, then the PanelHeader displays the “CLOSE” icon irrespective of any header buttons settings.
As an example, this is one of the autohide panel definition with only dock button I have used:
{
type: ‘LayoutGroup’,
items: [{
id: ‘CAM1’,
label: ‘Cam 1’,
items: [{
label: ‘Cam 1’,
content: ”,
headerButtons: [‘dock’],
tabCloseButtons: false
}],
headerButtons: [‘dock’],
autoHide: true,
autoHidePosition: ‘right’,
tabCloseButtons: false
}],
headerButtons: [‘dock’]
},
Have I used some wrong definition or parameter?