Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2740

Re: How do we provide SDK function parameters for use in content assistance?

$
0
0

Hey Karol,

 

Thanks for the info!

 

Now I know that I may be dreaming, but do you think it would also be possible to create these enums dynamically from let's say a list of colors defined in my component's contribution.xml/component.js by any chance?

 

If I were to attempt the pseudo-code, ideally it would be something along the lines of this:

 

/**

* enum field definition

*/

class ColorEnumfield extends Enumfield {

}

 

/**

* a set of constants defined in component.js

*/

class Color extends Enum {

   var colorList = this.colorList; //this.colorList would be defined in contribution.xml, only thing is that not sure this class would have access to my component.

   for (var i = 0; i < colorList ; i++){

         ColorEnumfield colorList [i];

   }

}

 

Thanks!

Scott


Viewing all articles
Browse latest Browse all 2740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>