You need to provide an attribute of type enumeration in the XML. Then you can access the enumeration values using .universe. Below you can find example how to do that. You can find more information in the docs.
return (
<ul>{
enumerationColumns?.universe?.map((enumItem) => {
return (enumerationColumns.formatter.format(enumItem))
})}
</ul>
)
I think this function can help.
Please refer to https://apidocs.rnd.mendix.com/10/client/mendix_lib_MxMetaObject.html#getEnumMap