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

  1. import { LightningElement } from 'lwc';
  2. import template from './myStepCustomNavigation.html'
  3. import omniscriptStep from 'vlocity_cmt/omniscriptStep';
  4. import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
  5. import { dispatchOmniEvent } from 'vlocity_cmt/omniscriptUtils';
  6. export default class myStepCustomNavigation extends OmniscriptBaseMixin(omniscriptStep) {
  7. connectedCallback() {
  8. console.debug("myStepCustomNavigation - connected");
  9. }
  10. gotoNext() {
  11. dispatchOmniEvent(this, { moveToStep: 'next' }, 'omniautoadvance');
  12. }
  13. gotoPrev() {
  14. console.debug('gotoPrev stepIndex', this.stepIndex);
  15. dispatchOmniEvent(this, { moveToStep: this.stepIndex - 1 }, 'omniautoadvance');
  16. }
  17. render() {
  18. return template;
  19. }
  20. }