You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How did you add padding with space, i wanna see it
Can you test :
...
constitems=['File','Edit','View','History','Bookmarks','Tools','Help'];varpad=' '.repeat(10)// ten spaces items[0]=pad+items[0];// adding padding to first item
...
term.singleLineMenu(items,options,function(error,response){letselectedText=response.selectedText.trimStart();// clears padding with trimmingif(response.selectedIndex!==0){// if its not first item then dont trimselectedText=response.selectedText;}
...
I noticed in the documentation, the multiline menu had a left padding option, but the single line menu does not.
Ive tried adding characters before it, but it doesnt move it at all..
I need to position this menu within a specific location, and its completely impossible as far as I can tell.
Adding space to the first item in the list does give me padding, but it obviously messes up the background color formatting :/
This is what Im stuck with right now:
It completely ruins the look of my project, so I was hoping there would be a fix for this or an alternative solution if someone knows one?
The text was updated successfully, but these errors were encountered: