How to remove selection in ItemList?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS
:warning: Old Version Published before Godot 3 was released.

There is a “ItemList” wherein there are selected items. Using GDScript I need to disable selection of item in ItemList. How to do it?

:bust_in_silhouette: Reply From: jospic

Use:

set_item_selectable ( item id, false )

to make item unselectable

Regards
-j