Salesforce Lightning Web Component

Salesforce

Sample Salesforce Lightning Rich Text Toolbar Button Group

Sample Code: HTML: <template> <lightning-card> <lightning-input-rich-text> <lightning-rich-text-toolbar-button-group slot="toolbar" aria-label="Sample Button Group"> <lightning-rich-text-toolbar-button icon-name="utility:save" icon-alternative-text="Save" onclick={handleSave}> </lightning-rich-text-toolbar-button> <lightning-rich-text-toolbar-button icon-name="utility:email" icon-alternative-text="Email" onclick={handleEmail}> </lightning-rich-text-toolbar-button> </lightning-rich-text-toolbar-button-group> </lightning-input-rich-text> </lightning-card> </template> JavaScript: import { LightningElement } ....

Salesforce

How to pass Record Type Id in Salesforce Lightning Web Component lightning-record-form?

Sample Code: HTML: <template> <lightning-quick-action-panel header="New Case"> <lightning-record-form object-api-name="Case" layout-type="Full" columns="2" record-type-id={caseRecordTypeId}> </lightning-record-form> </lightning-quick-action-panel> </template> JavaScript: import { LightningElement, wire } from 'lwc'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import ....