vijayk3327 / LWC

1 stars 0 forks source link

How to use the lightning-formatted-email, lightning-formatted-number, lightning-formatted-phone, lightning-formatted-date-time, lightning-formatted-text, lightning-formatted-address, lightning-formatted-url in Salesforce lightning web component (LWC) #63

Open vijayk3327 opened 1 year ago

vijayk3327 commented 1 year ago

In this post we are going to learn about How to use the lightning-formatted-email, lightning-formatted-number, lightning-formatted-phone, lightning-formatted-date-time, lightning-formatted-text, lightning-formatted-address, lightning-formatted-url in Salesforce lightning web component (LWC).

→ Get source code live demo link:-

Step 1:- Create Lightning Web Component HTML ➡ lwcFormattedInput.html

` `

Step 2:- Create Lightning Web Component Javascript ➡ lwcFormattedInput.js

import { LightningElement } from 'lwc'; export default class LwcFormattedInput extends LightningElement { }

Step 3:- Create Lightning Web Component Meta XML ➡ lwcFormattedInput.js-meta.xml

` <?xml version="1.0" encoding="UTF-8"?>

45.0 true lightning__AppPage lightning__RecordPage lightning__HomePage ` **[→ Get source code live demo link:-](https://www.w3web.net/use-the-lightning-formatted-fields-in-lwc/)**