Is there any way to have two columns inside an dropdown option using fluent ui ?
The Problem is that i would like to style this so single-digit numbers align well to 2-digit or 3-digit numbers:
Thats why i thoughjt it would be better to have two columns and align the content with the numbers with "flex-end" and the second one with the text just normaly Any Ideas?
My Code for maping the options:
let mainGroupOptions = Object.keys(dropDownOptions)
.map(key => {
return { key, text: dropDownOptions[key].value + " - " + dropDownOptions[key].label, value: dropDownOptions[key].value };
});
Dropdown HTML code:
<Dropdown
label="Hauptgruppe*"
options={mainGroupOptions}
selectedKey={mainGroupSelected}
errorMessage={errors.mainGroup ? "Hauptgruppe erforderlich" : ''}
onChange={(e, option) => { setMainGroupSelected(option.key); deleteErrors(errors, errors.mainGroup) }}>
</Dropdown>