Hi there
I implemeted custom UI component (OsmMapsModule) and injected it on Freedom Ui list page using this article Implement a custom UI component based on a Classic UI page | Creatio Academy
Now I need to get feedback from that component on the page to trigger some logic on Freedom UI, bu fail to do so. Here is my code.
define("ClvObjectMapModule", ["ClvObjectMapModuleResources", "@creatio-devkit/common", "Base7xViewElement", "MaskHelper", "ClvJsConsts",
"ckeditor-base", "Leaflet", "css!Leaflet"],
function(resources, sdk, Base7xViewElement, MaskHelper, ClvJsConsts) {
/* Declare a "ClvObjectMapModule" class. */
class ClvObjectMapModule extends Base7xViewElement {
_mapRecordClickedId;
get mapRecordClickedId() {
return this._mapRecordClickedId;
}
set mapRecordClickedId(value) {
this._mapRecordClickedId = value;
}
...
// Here I make change and want it propagate to Freedom UI page.
_clvOpenPage(config) {
this.mapRecordClickedId = config.recordId;
}
}
/* Register the component. */
customElements.define('clv-objectmap', ClvObjectMapModule);
/* Register a component as a visual element. */
sdk.registerViewElement({
type: 'clv.ObjectMap',
selector: 'clv-objectmap',
inputs: {
mapRecordClickedId: {}
},
// This is not documented and I just guessed it might work like for example inputs work.
outputs: {
mapRecordClickedId: {}
}
});
return Terrasoft.ClvObjectMapModule;
});