当前位置:网站首页>Salesforce fileUpload (III) how to display uploaded images
Salesforce fileUpload (III) how to display uploaded images
2022-06-23 02:13:00 【repick】
fileUpLoadImageDisplayLWC.html
<template>
<lightning-card title="LWC File Upload Example Dipplay" icon-name="custom:custom19">
<lightning-input onchange={inputChange}></lightning-input>
<template if:true={imageUrl}>
<img src={imageUrl}/>
</template>
</lightning-card>
</template>fileUpLoadImageDisplayLWC.js
import { LightningElement,track } from 'lwc';
export default class FileUpLoadImageDisplayLWC extends LightningElement {
@track imageUrl;
inputChange(e) {
if (e.target.value)
this.imageUrl = '/sfc/servlet.shepherd/version/download/' + e.target.value
}
}fileUpLoadImageDisplayLWC.js-meta.xml
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>52.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>Put the developed Lwc Configuration to Account detailed Page
Input 【ContentVersion】 The corresponding picture in the table Id
边栏推荐
- Schedule tasks to periodically restart remote services or restart machines
- Ugui empty button implementation
- Download and compile ROS source code
- Get the structure of the class through reflection, little chestnut
- Cmake passing related macros to source code
- Ch340 and PL2303 installation (with link)
- Array part
- 278. digital combination
- JS to realize the rotation chart (riding light). Pictures can be switched left and right. Moving the mouse will stop the rotation
- 3. compilation and linking principle
猜你喜欢

1. Mx6u bare metal program (5) - external interrupt

Deep learning environment configuration (I) installation of CUDA and cudnn

Information theory and coding

Branch and loop statements (including goto statements) -part1

1. introduction to MySQL database connection pool function technology points

Application and challenge of ten billion level map data in Kwai security intelligence

Cmake configuration error, error configuration process, Preject files may be invalid

Third order magic cube formula

JS advanced part

5. explain function overloading
随机推荐
5g access network and base station evolution
Pychart installation instructions
Schedule tasks to periodically restart remote services or restart machines
【CodeWars】 Pete, the baker
Analog Electronic Technology
Rebirth -- C language and the story I have to tell (text)
1. Mx6u bare metal program (5) - external interrupt
Ch340 and PL2303 installation (with link)
Performance testing -- Interpretation and practice of 16 enterprise level project framework
Cut! 39 year old Ali P9 saved 150million
Docker installs mysql5.7 and mounts the configuration file
【CodeWars】What is between?
Quick sort method
CSDN browser assistant for online translation, calculation, learning and removal of all advertisements
//1.9 char character variable operation
Array part
My good brother gave me a difficult problem: retry mechanism
1. Mx6u startup mode and equipment
Ansible practice of Nepal graph
Digital integrated circuit design process