defines the current view of Gantt

string display;


  • "tasks"
  • "resources"
  • Example

      view: "resources",
      url: "https://docs.webix.com/gantt-backend/",
      resources: true, // must be enabled!
      // show resources view
      display: "resources", 

    Default value:


    Related samples


    By default Gantt displays tasks in tree and chart. To switch Gantt to the Resources View, set the property to "resources". Note that this property requires resources to be enabled.

    As it is a reactive property you can also access and alter it via the widget state:

    // switch to the resources view
    $$("myGantt").getState().display = "resources";
    See also
    Back to top