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.
 
 
 

25 lines
793 B

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