Re: dd_lighbar_menu.js request
By: Ragnarok to nightfox@VERT on Tue Aug 27 2019 06:56 pm
Ra> Hi Nightfox!
Ra> i use the great lightbar menu library
Ra> i need to add item and be selected it (set position to it)
Ra> can you add this feature?
I'm not sure what you mean? You want to be able to have an item selected when
you add an item?
If you want to make a new item selected, you should be able to do that already
by setting the selectedItemIdx variable to the index of the item you just added
(assuming your menu object is called 'menu'):
menu.selectedItemIdx = menu.items.length - 1;
Nightfox
---
þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|