how to specify menu items with URL Params

UI Components for React
Post Reply
Posts: 1
Joined: 27 Feb 2020, 14:54

27 Feb 2020, 16:25

I'm building an menu in the side bar with separate containers for creating and editing blog posts

Code: Select all

    createMenu() { = [
            label: 'Blogs', icon: 'fas fa-blog',
            items: [
              {label: 'All', icon: 'fas fa-list', to: '/blogs'},
              {label: 'New', icon: 'fas fa-pen', to: '/blogs/create'},    
              {label: 'Edit', icon: 'fas fa-pen', to: '/blogs/edit'},    
Now I want to understand how to add the slug that is used to fetch the blog from REST API to the edit url; typically we would access an existing blog using the URL

Code: Select all

doesn't work.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests