Skip to content

Router support for PanelMenu headers #949

Closed
@scottix

Description

@scottix

Summary

PanelMenu is not using router-link and only providing the url option. Which is odd because it seems PanelMenuSub is using router-link.

Code

<template>
  <PanelMenu :model="menuItems" />
</template>
<script>
import PanelMenu from 'primevue/panelmenu'
export default {
  data() {
    return {
         menuItems: {
          label: 'Activity',
          icon: 'pi pi-book',
          to: '/activity'
        },
    }
  }
}
</script>

Version

3.2.2

Actual Result

Nothing

Expected Result

Provide a router link

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been add

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions