Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <lightning-button variant="brand" label="Brand action" title="Brand action"
- onclick={handleClick} class="slds-m-left_x-small"
- ></lightning-button>
- </template>
- import { LightningElement } from 'lwc';
- import { NavigationMixin } from 'lightning/navigation';
- export default class SampleWireContextEventWarning extends NavigationMixin(LightningElement) {
- handleClick(event){
- this[NavigationMixin.Navigate]({
- type: 'standard__recordPage',
- attributes: {
- recordId: "500r0000004QblbAAC",
- objectApiName: "Case",
- actionName: "view"
- },
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement