Skip to main content
Known Participant
January 23, 2024
Question

Script UI : Does listitem has "onclick" event ?

  • January 23, 2024
  • 1 reply
  • 259 views

I currently have a listbox with the onDoubleClick event applied to list items. Is there an onclick event available for list items?

 

my code like this now 

 

const list_folder = group_left.add('listbox', undefined, undefined, { name: 'list_folder', items: [] });


list_folder.onDoubleClick = update_list_file;

// list_folder.onClik ?
or
// listitem.onClik ?

 

 

 

 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
January 23, 2024

I believe a listbox has onDoubleClick and onChange callbacks, but not onClick (haven't tested it though).

yueliliAuthor
Known Participant
January 23, 2024

thanks for you reply, i try a lot, like listitem.addEventListener,  not work too~  T_T