DHTMLX Docs & Samples Explorer

attachList(template, data)

adds a list-like structure to the pop-up window

  • template - (string) a comma-separated list of data properties that will be rendered in the list;
  • data - (array) the data available for rendering in the list;
var  myPop = new dhtmlXPopup(...);
myPop.attachList("name,price", [
		{id: 1, name: "Audi A5 Coupe", price: "€ 31,550"},
		{id: 2, name: "Audi A5 Sportback", price: "€ 30,990"},
		myPop.separator,
		{id: 3, name: "Audi A6", price: "€ 30,990"},
		{id: 4, name: "Audi A6 Avant", price: "€ 37,450"},
		{id: 5, name: "Audi A6 Quattro", price: "€ 55,360"}
]);

Related resources