Folder widget

Hi

I'm using widget folderbrowser2.widget in our external app.

  var browser = new FolderBrowserWidget2(

      {

        connection: serverConnection,

        start: {id: folderID }

      });


    browser.show({placeholder: '#folderwidget'});


Is it possible to hide Up navigation (screenshot)?


Tagged:

Comments

  • Hi Uldis,

    I think this is the purpose of the stop property in the breadcrumb object you can define in the FolderBrowser2 object.


    I haven't tried this, but would seem a logical candidate to try.

    Regards,

    David

  • Hi

    Thanks for help. But the breadcrumb does not affect the UP button

    breadcrumb: {
    stop: { id: **** }
    }
  • 'conws/utils/commands/navigate/navigateup': {enabled:false} did the trick ;)

  • Hey Uldis - care to post your final code showing others benefit of your finding? :)

  • Uldis
    Uldis Member
    edited February 22, 2023 #6

    Here you go

    
    

  • An excellent example for others to beneift from :)

  • Yes, it is possible to hide the Up navigation button in the FolderBrowserWidget2. The FolderBrowserWidget2 class may have a property or method that allows you to control the visibility of the Up navigation button. However, without specific information about the FolderBrowserWidget2 implementation or the documentation for that widget, I cannot provide you with the exact code or method to achieve this.

  • I think this is the purpose of the stop property in the breadcrumb object you can define in the FolderBrowser2 object.