Check documentation for the latest version of dhtmlxSuite Object Constructor DHTMLX Docs

Object Constructor

There are two possible syntaxes of the List constructor:

Simple

var myList = new dhtmlXList("container_id");

Where "container_id" - id of the html container, inside of which List will be initialized.

Detailed

var myList = new dhtmlXList({
    container:"container_id",
    drag:true, 
    select:true,
    type:some
});

Where:

  • container - {mixed} ID of the HTML container inside of which an item will be rendered
    • ID of HTML element
    • HTML object
  • drag - {boolean} enables drag-n-drop
    • true - dnd allowed
    • false - dnd denied
  • select - {mixed} defines selection mode
    • false - selection is denied
    • true - single selection is allowed
    • "multiselect" - multiselection is allowed
  • type - {mixed} name of a render-type, or a custom template
    • name of type
    • type object, check the Templates article
  • height - {string} can be set as "auto" to force auto-height
    • "auto" - force auto-height mode
  • pager - paging control settings
    • pager object, check the Paging article
  • tooltip - tooltip object settings
    • tooltip object
var myList = new dhtmlXList({
    container:"container_id",
    tooltip:{
        template:"Details: #property#"
    }
});
Back to top