• Satheesh S
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hello,

I am trying to open a custom lighting tab by clicking a button from a component. My lighting tab component requires a 'faqid' to render the content. Is there any way to pass key-value pair from parent component to lighting tab component?

I tried passing the key from state, but doesn't work for me.
 
navigateToTab() {
        this[NavigationMixin.Navigate]({
            type: 'standard__navItemPage',
            attributes: {
                apiName: 'FAQ_Article',
                test: 'test'
            },
            state: {
                faqid: 'faq15'
            }
        });
    }



Stay Safe!!
Hello.

I have an usecase to open a new tab with custom LWC compoment within salesforce whenever i click a link. newly opened tab should have an option to close. Could you someone help to share some pointers in how i can start?