Skip to content

Instantly share code, notes, and snippets.

@geekyakshay
Created June 29, 2020 15:20
Show Gist options
  • Save geekyakshay/7f2375951f5f0bfd8f161f1fa4a6e9d5 to your computer and use it in GitHub Desktop.
Save geekyakshay/7f2375951f5f0bfd8f161f1fa4a6e9d5 to your computer and use it in GitHub Desktop.
Display Rich Text Contents in lightning-datatable column in LWC
<template>
<p class="slds-truncate slds-p-horizontal_x-small" title={value}>
<lightning-formatted-rich-text value={value} ></lightning-formatted-rich-text>
</p>
</template>
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