Pluggable widget - Is there possible to use Mendix Client API?

0
Is Mendix Client API  for javascript and custom widget? I want to iterate all enum values in pluggable widget. How can I do it? I think it like below. my pluggable widget ->(call) nanoflow ->(call) microflow ->(call) java action → use java reflection. Is it right or not.
asked
1 answers
0

Hi Yes you can Mendix Client API in Java Script 
Here is the documentation. 
https://apidocs.rnd.mendix.com/9/client/mendix_lib_MxContext.html 

for example 
**
 * @param {MxObject} product
 * @returns {Promise.<void>}
 */
export async function JS_Print_Product_Labels(product) {
    // BEGIN USER CODE
    var productName = product.get("AttributeName1");
      var expiryCategory =product.get("AttributeName2");
      var scannedDate = product.get("AttributeName3"); 
      
}      

answered