JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Docking Layout Docked panel/item still gets close button even if disabled

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #103010
    rarcher
    Participant

    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?

    #103022
    admin
    Keymaster

    Hi rarcher,

    We reproduced this and created a work item. The behavior should be dock/undock should keep the headerButtons setting.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    #103031
    rarcher
    Participant

    Hi Peter,

    thanks for the response. Please note that the same issue arises if a panel/tab is completely undocked rather than hidden/unhidden – again one get the “close” button.

    Regards
    Roger

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.