How can i get all enumeration values in javascript?

0
Hi! Currently, I'm making pluggable widget.  How can i get Enumeration values in javascript? For example, let's assume that there are enum values:[{key:key1,value:value1},{key:key2,value:value2},{key:key3,value:value3}]. By using them, I wans to add a select box. How can i acheive it?  
asked
0 answers