SF Nav Mixin
Sat Jun 12 2021 13:24:05 GMT+0000 (UTC)
Saved by
@redflashcode
#javascript
import { LightningElement, wire } from 'lwc';
import { NavigationMixin } from 'lightning/navigation';
navigateToContact() {
this[NavigationMixin.Navigate]({
type: 'standard__recordPage',
attributes: {
recordId: this.contact.data.Id,
objectApiName: 'Contact',
actionName: 'view' //to edit change value to edit
}
});
}
content_copyCOPY
Comments