Index of the next enabled item from from in direction, wrapping at the ends and skipping disabled items. Returns -1 when nothing is enabled.
from
direction
-1
Index of the next enabled item from
fromindirection, wrapping at the ends and skipping disabled items. Returns-1when nothing is enabled.