display

defines the current view of Gantt

string display;

Values

  • "tasks"
  • "resources"
  • Example

    webix.ui({
      view: "resources",
      url: "https://docs.webix.com/gantt-backend/",
      resources: true, // must be enabled!
      // show resources view
      display: "resources", 
    });


    Default value:

    "tasks"

    Related samples

    Details

    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