function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Satheesh SSatheesh S 

Is it possible to pass key-values in standard__navItemPage type

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!!
Sam Watson 10Sam Watson 10