17 lines
517 B
JavaScript
17 lines
517 B
JavaScript
import { LightningElement } from 'lwc';
|
|
import { NavigationMixin } from 'lightning/navigation';
|
|
export default class TestLwc extends NavigationMixin(LightningElement) {
|
|
|
|
navigateToAccountsList() {
|
|
this[NavigationMixin.Navigate]({
|
|
type: 'standard__objectPage',
|
|
attributes: {
|
|
objectApiName: 'Account',
|
|
actionName: 'list'
|
|
},
|
|
state: {
|
|
filterName: 'Recent' // Optional filter name
|
|
}
|
|
});
|
|
}
|
|
} |