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]