Hiding Buttons, JavaScript Programming Example of Hiding Buttons in File Manager

JavaScript Programming Example of Hiding Buttons in File Manager

The programming example below will enable you to hide any view of File Manager. Note that the piece of code is free. Don't hesitate to use Webix coding samples for your web development projects.

JS Code

/*
The sample uses an outdated File Manager that is no longer supported. 
To learn about the new tool, visit https://docs.webix.com/desktop__filemanager.html
*/


webix.ready(function(){
  webix.ui({
    rows:[
      { view: "label", label: "it is possible to delete 'menu' button by customizing cols array of 'toolbar' view" },
      {
        view:"filemanager",
        id:"files"
      }
    ]
  });
  // hide 'menu' button
  $$("files").$$("menu").hide();

  // hide a spacer between 'menu' and 'back' buttons
  $$("files").$$("menuSpacer").hide();

  $$("files").load("https://docs.webix.com/filemanager/samples/server/");
});

HTML Code

<style>
  .header div{
  	padding: 0 10px;
  }
</style>