How can i use mxmetaObject?

Hi! Nowdays, I'm trying to make a custom pluggable widget.  But I face the problem that i can retrieve a values of enumeration. I found that mxmetaObject has a getEnumMap method in api document, but there is no explanation how to get mxmetaObject. How can i use mxmetaObject?
1 answers

You don't need MxMetaObject, you can have an atttribute of type Enum and use something like this


    const s =, index) => {

        return {

            label: enumAttribute.formatter.format(item),

            value: item,

            ref: useRef()