• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Script UI : Does listitem has "onclick" event ?

Explorer ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

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 ?

 

 

 

 

TOPICS
Scripting

Views

142

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines