Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <template>
  2. <lightning-button variant="brand" label="Brand action" title="Brand action"
  3. onclick={handleClick} class="slds-m-left_x-small"
  4. ></lightning-button>
  5. </template>
  6.  
  7. import { LightningElement } from 'lwc';
  8. import { NavigationMixin } from 'lightning/navigation';
  9.  
  10. export default class SampleWireContextEventWarning extends NavigationMixin(LightningElement) {
  11. handleClick(event){
  12. this[NavigationMixin.Navigate]({
  13. type: 'standard__recordPage',
  14. attributes: {
  15. recordId: "500r0000004QblbAAC",
  16. objectApiName: "Case",
  17. actionName: "view"
  18. },
  19. });
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement