For the managed package runtime, learn how a custom Lightning web component extends the OmniScriptBaseMixin component to wrap a Salesforce Lightning Element.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
In this code example, replace the NS variable in the
code example with the namespace of the Vlocity package that you use.
import tmpl from './customLightningElement.html';
import { LightningElement } from 'lwc';
import { OmniscriptBaseMixin } from 'NS/omniscriptBaseMixin';
export default class customLightningElementWithMixin extends OmniscriptBaseMixin(LightningElement) {
handleBlur(evt) {
this.omniUpdateDataJson(evt.target.value);
}
render() {
return tmpl;
}
}