buttonSelect opts

I cant seem to put opts into my buttonSelect. The buttonSelect itself shows up fine.

Code that does not work:

[code] var myopts = [
[‘id1’, ‘obj’, ‘load’, ‘img1’],
[‘sep01’, ‘sep’, ‘’, ‘’],
[‘id2’, ‘obj’, ‘option2’, ‘img2’]
];

		myToolbar = myLayout.attachToolbar({
			icons_size: 24,
			icons_path: "icons/",
			items:[
				{id: "load", type: "buttonSelect", text: "Load...", img: "appbar.page.add.png", opts: myopts},
				{id: "sep1", type: "separator" },
				{id: "open", type: "button", img: "open.gif"},
				{id: "autosave", type: "buttonTwoState", text: "Autosave", img: "save.gif"},
				{id: "inp", type: "buttonInput", text: "Input"},
				{id: "sld", type: "slider", text_min: "10 MBit", text_max: "100 MBit"}
			]
		});[/code]

Hello

  1. You are trying to use incorrect syntax of options data. You need to set every property name:

myopts = [ {id: 'id1', type: 'obj', text: 'load', img: 'img1'}, {id: 'sep01', type: 'sep', text: '', img: ''}, {id: 'id2', type: 'obj', text: 'option2', img: 'img2'} ];
2) You set incorrect options property name. Please, use options instead of “opts”:

{id: "load", type: "buttonSelect", text: "Load...", img: "appbar.page.add.png", options: myopts},

Please, look at this sample - it must help you
dhtmlx.com/docs/products/dhtmlxT … i_ext.html