How can i use mxmetaObject?

0
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?
asked
1 answers
1

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

 

    const s = enumAttribute.universe.map((item, index) => {

        return {

            label: enumAttribute.formatter.format(item),

            value: item,

            ref: useRef()

        };

    });

 

 

answered