Created
June 29, 2020 15:20
-
-
Save geekyakshay/7f2375951f5f0bfd8f161f1fa4a6e9d5 to your computer and use it in GitHub Desktop.
Display Rich Text Contents in lightning-datatable column in LWC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<p class="slds-truncate slds-p-horizontal_x-small" title={value}> | |
<lightning-formatted-rich-text value={value} ></lightning-formatted-rich-text> | |
</p> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LightningElement, api } from 'lwc'; | |
export default class CustomRichTextOutput extends LightningElement { | |
@api value = ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment