Examples of Vlocity/SF LWC components (in various states of working)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
703 B

import { LightningElement } from "lwc";
import template from "./myCustomComponentWithNavButtons.html"
import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
import { dispatchOmniEvent } from 'vlocity_cmt/omniscriptUtils';
export default class myCustomComponentWithNavButtons extends OmniscriptBaseMixin(LightningElement) {
connectedCallback() {
console.debug("myCustomComponentWithNavButtons - connected");
}
gotoNext() {
dispatchOmniEvent(this, { moveToStep: 'next' }, 'omniautoadvance');
}
gotoPrev() {
dispatchOmniEvent(this, { moveToStep: this.stepIndex - 1 }, 'omniautoadvance');
}
render() {
return template;
}
}