Hi edwardsmarkff,
Unfortunately by the default this functionality is not supported by the MultiInput component, but there are two options that may be suitable for you.
Option #1:
Set the DropDownHeight proprety of the component to ‘auto’. This will result in a drop down menu with height calculated by the number of items in it and it doesn’t have a scrollbar.
Option #2:
I have prepared a code snippet for this option and is similar to the functionality that you need:
input.dropDownWidth = '700';
input.dropDownHeight= 'auto'
input.addEventListener('click', ( )=> {
let dropdownMenu = document.querySelector('.smart-input-drop-down-menu');
if (dropdownMenu != null) {
let allDropdownItems = dropdownMenu.querySelectorAll('li');
for (let i = 0; i < allDropdownItems.length; i ++) {
if (i % 2 == 0) {
allDropdownItems[i].style.float = 'left';
}
else {
allDropdownItems[i].style.float = 'right';
}
}
}
});
Let me know if this works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/