TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: RAGNAROK
from: NIGHTFOX
date: 2019-08-27 17:20:00
subject: dd_lighbar_menu.js reques

  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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.