How can I click TOC menu to open list directly

Hi  Community,

I want to directly open the data list after clicking on the menu. So I change TOC access to TOC View, but it will disable something function, just like refresh date list after add or update or delete.

Is there other way to achieve, except using TOC view.

By the way, how can I increase TOC content width,because I can`t see the full menu name which text too long.

  • No conflicts found so far when user´s have pinned/unpinned the sidebar.

    And I optimized the effect like:

    click favorite tab: open secondary window (i remove my changes to the select event to keep original effect)

    click menu text: open datagrid only

    And then, I want to change the event of the small magnifying glass to open secondary window. But I've been testing for a while and I can't call the function(_showSecondaryMenu)of NavigationPanel.js in cuiToc.js. Maybe NavigationPanel.js has not been compiled yet ?Do you have ideas?

    Thanks.

  • Do you try to achieve your original idea by inverting the behavior of the magnifying glass and the regular TOC entries?

    It´s seems a bit more complicated to overwrite the behavior of the magnifying glass. You cannot reuse the _showSecondary function cause it is not available in this context.

    You could try to rebuild the function or try if you can import the necessary components. There are multiple imports at the top of NavigationPanel.js. But I don´t know yet, how the exactly stick together and if things can really work that way.

    A solution that solely modifies NavigationPanel.js would be easier. Maybe there is a way to detect, when a event is fired from the magnifying class on an early stage to bypass the events that cuiToc.js would execute. 

    But I am not sure right now, it´s a bit tricky.