+ Start a Discussion
Shavi DabgotraShavi Dabgotra 

Traversing of file and sub-files using LWC

Hi all,
I have created a data table which contain list of files. 

I have to create a component like this: 
User-added imageWhen a user click on Test data table, then, a traversal as highlighted should be added there. And if again we click on opportunity folder in Highlighted then it will go back to previous.
How can I acheive this using lightning web component. 

Thank you so much!

 

AnudeepAnudeep (Salesforce Developers) 
I recommend using NavigationMixin for your requirement
 
// Navigate to New Record Page
    navigateToNewRecordPage() {
        this[NavigationMixin.Navigate]({
            type: 'standard__recordPage',
            attributes: {
                "recordId": this.recordId,
                "objectApiName": "Account",
                "actionName": "new"
            },
        });
    }

I suggest taking a look at the documentation for the sample code

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you