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

Re: SDK: returning data of component should be the value of another component

$
0
0

For this  to work you need 4 things:

  1. You need to declare the property "componentName" in contribution.xml - type String
  2. You need to write the getter/setter in component.js as shown above.
  3. You need to write the getter in contribution.ztl, e.g.
             String getComponentName() {*  return this.componentName; *}
  4. Whenever there is a new value on the browser, in your component.js you need to call this.firePropertiesChanged(["componentName"]);

Viewing all articles
Browse latest Browse all 9656

Trending Articles



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