19 lines
515 B
JavaScript
19 lines
515 B
JavaScript
import { LightningElement, api } from "lwc";
|
|
|
|
export default class PreviewFileModal extends LightningElement {
|
|
@api url;
|
|
@api description="";
|
|
@api fileExtension;
|
|
showFrame = false;
|
|
showModal = false;
|
|
@api show() {
|
|
console.log("###showFrame : " + this.fileExtension);
|
|
if (this.fileExtension === "pdf") this.showFrame = true;
|
|
else this.showFrame = false;
|
|
this.showModal = true;
|
|
console.log("description in last"+this.description);
|
|
}
|
|
closeModal() {
|
|
this.showModal = false;
|
|
}
|
|
} |