cooper collier 6/10/2024 2:13:37 PM I have NEVER done this, so it is just a guide to get you going the "hopefully" correct way.
I did some checking, the easiest way to do this is add the "size" tag to the <SELECT> in HTML. The Select box is generated by TEAMDESK and we do not have the ability to directly change it.
It may be possible to do using a combination of Javascript and CSS.
Check the documentation. You need to make a JavaScript and CSS file in resources
Then you will need to make a javascript to inject the Size tag. Something like this
function modifySelectElement( ) { let selectElement = document.querySelector("#mySelect"); selectElement.setAttribute("size", selectElement.options.length); }
Once that works, you can make CSS to make the choices in a row.
This is something I looked up, so it may or may not be correct.
select { display: flex; flex-wrap: wrap; width: fit-content; border: none; background-color: transparent; }
select option { margin-right: 0.5rem; }
and hope it works!!!
Let me know if this helps in any way?
|