Category: Lightning Components

Toast message in Lightning component

How to show toast in lightning record page by using force:showToast. Toast are the message box or you can say notification which developer can show according to action of the user. ATTRIBUTES  type :  The toast can be of 4 types  info success warning error  key :  It specify the icon on the toast when type is not …

Continue reading

Permanent link to this article: https://salesforcebuddy.com/2020/04/toast-message-in-lightning-component/

Salesforce Lightning Confirm Dialog Box

If you want to show a modal window, you can use the code below Lightning Component: Lightning JS Controller: ({ })

Permanent link to this article: https://salesforcebuddy.com/2020/04/salesforce-lightning-confirm-dialog-box/

How to display Custom Labels in Lighting (Aura) Components

Syntax $Label.namespace.LabelNameif your org not having any names space use default namespace ‘c’ Let us create a custom label with name Label1 Lightning Component Controller ({ getLabelValue : function(component, event, helper) { var labelValue = $A.get(“$Label.c.Label1”); component.set(‘v.strLabelvalue’, labelValue); }, })

Permanent link to this article: https://salesforcebuddy.com/2020/01/how-to-display-custom-labels-in-lighting-aura-components/