Copy link to clipboard
Copied
Hi.
I have a multicolumn listbox with several values.
var fontsList = fontsPanel.add("listbox", undefined, undefined, {
numberOfColumns: 2,
showHeaders: true,
columnTitles: ["Font ", "Usage "],
multiselect: true
//columnWidths: [350, 50, 200, 100]
});
var lItem = fontsList.add("item", "test");
lItem.subItems[0].text = "test 1";
I can access the first columns values using
fontsList.items;
But how can I get the array with the second column items? I am trying this but ins't working
fontsList.subItems[0];
Can anyone help please?
Try this:
fontsList.items[0].subItems[0].text
P.
Copy link to clipboard
Copied
Try this:
fontsList.items[0].subItems[0].text
P.
Copy link to clipboard
Copied
Thank you do much Peter, it worked!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now