You need to sign in to do that
Don't have an account?
Ricardo Coutinho 7
Import Image to Lightning Components
Hi Guys,
I created a field for contacts name: "image" and now i'm trying to import the image to a lightning component.
I have this code:
As you can see, he is importing the field but i don't know why the image is not showing, instead he show's the code...
I created a field for contacts name: "image" and now i'm trying to import the image to a lightning component.
I have this code:
<tbody> <tr> <td data-label="Picture" title="Pic"> <p>{!contact.Image__c}</p> </td> <td data-label="Name" title="Name"> <p>{!contact.Name}</p> </td> <td data-label="birthdate" title="birthdate"> <p>{!contact.Birthdate}</p> </td> <td data-label="Steet" title="street"> <p>{!contact.MailingStreet}</p> </td> <td data-label="Email" title="email"> <p>{!contact.Email}</p> </td> </tr> </tbody>But the final import is this:
As you can see, he is importing the field but i don't know why the image is not showing, instead he show's the code...
I need to use outputRichText tag, like this:
<ui:outputRichText value="{!contact.Image__c}"/>