This is a Lightning web component based on PDF.js library to render a PDF document (an unencoded string representation of the PDF blob) inside an
iframe.Check the code below for this component:
https://github.com/iamsonal/lwc-pdfReader
iframe.HttpRequest req = new HttpRequest();
req.setEndpoint('callout:Cross_Org_Report/services/data/v45.0/query?q=select+Email,FirstName,LastName+from+contact');
req.setMethod('GET');
Http http = new Http();
HTTPResponse response = http.send(req);
return response.getBody();
accountService component and exposed the below services:searchAccount: it accepts a search key and returns the list of accounts matching the keygetAccounts: this returns a list of 5 accountsaccountComponent which is consuming the services like below:component1 and component2 where component2 is the child of component1. I need to access the design attribute values of the parent component from the child component. In this example, we are storing the design attribute values in a single central place, sharedData component, written in the Singleton pattern.customLabels using Javascript classes to access the custom labelshide-close property to true like below:<!-- modalContainer.html -->
<template>
<c-modal name="Modal Name" title="Modal Title" hide-close>
</c-modal>
</template>
is-large property to true like below:<!-- modalContainer.html -->
<template>
<c-modal name="Modal Name" title="Modal Title" hide-close is-large>
</c-modal>
</template>
<c-modal name="Modal Name" title="Modal Title" >
<!-- Unnamed Slot -->
<p>This is some content</p>
<!-- Named Slot -->
<div slot="footer" style="display: inline;">
<lightning-button label="Close" variant="neutral" onclick={handleCancelModal}></lightning-button>
</div>
</c-modal>
style-class property to apply a custom CSS in the modal.