function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Oscar Fernando De la CruzOscar Fernando De la Cruz 

How display initial text on Rich Text component

Hi everyone, I have this LWC to generate a PDF (https://santanuboral.blogspot.com/2020/10/lwc-generate-pdf.html)
 And Im trying to get de info about contact and display on my component Im have only this 

import { LightningElement, api, track} from 'lwc';
import generatePDF from '@salesforce/apex/DisplayRichTextHelper.generatePDF';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import id from '@salesforce/user/Id';
import Username from '@salesforce/schema/User.Username';
import { getRecord } from 'lightning/uiRecordApi';

export default class DisplayRichTextComponent extends LightningElement {
    
    @api recordId;
    

    allowedFormats =  ['font', 'size', 'bold', 'italic', 'underline', 'strike',
    'list', 'indent', 'align', 'link', 'image', 'clean', 'table', 'header', 'color',
    'background','code','code-block'];

    

    //this method will display initial text
    get myVal() {
        return "ID:" +this.recordId;
    }

And this is the only I have

 

So I need of Contact: ID,Name, Email, any idea of how I can do that?