Convertigo Public Knowledge base

Get element or value from Identifier property

Most of Convertigo components have an Identifier property. This is equivalent to the Angular ViewChild, a property decorator that configures a view query (e.g. query <my-component #cmp></my-component> with @ViewChild('cmp')).

To retrieve the element or its value (if component defines a value property) in a customAction component, use:

let cmp_element = page['cmp']; let cmp_value = page['cmp'].value;

or, in a TS field property, use:

this['cmp'].value

 

(c) Convertigo 2023 https://www.convertigo.com