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

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