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.

36 lines
812 B

  1. import { LightningElement, api } from "lwc";
  2. import Input from "vlocity_cmt/input";
  3. import template from "./fileUpload.html"
  4. import { OmniscriptBaseMixin } from 'vlocity_cmt/omniscriptBaseMixin';
  5. export default class fileUpload extends OmniscriptBaseMixin(Input){
  6. get value() {
  7. return this._value;
  8. }
  9. @api
  10. set value(val) {
  11. console.debug('Setter files', val);
  12. this._value = val;
  13. }
  14. get FileList() {
  15. return this._FileList;
  16. }
  17. @api
  18. set FileList(val) {
  19. console.debug('Setter files', val);
  20. this._FileList = val;
  21. }
  22. connectedCallback() {
  23. console.debug("fileUpload - connected");
  24. }
  25. handleInput(evt) {
  26. console.debug("handleInput", this.inputValue);
  27. }
  28. render() {
  29. return template;
  30. }
  31. }