Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabMenu: we can not use tab-change event with menuitem templating #3357

Closed
forNoor opened this issue Dec 1, 2022 · 0 comments
Closed

TabMenu: we can not use tab-change event with menuitem templating #3357

forNoor opened this issue Dec 1, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@forNoor
Copy link

forNoor commented Dec 1, 2022

Describe the bug

for description of using templating for tabmenu the documenation is:

TabMenu offers content customization with the item template that receives the menuitem instance from the model as a parameter.


<TabMenu :model="items">
    <template #item="{item}">
        <a :href="item.url">{{item.label}}</a>
    </template>
</TabMenu>

but in slot only item is present so we can not manage click action.
you can test this sample from documentation and undrestand problem.

Reproducer

not prepared

PrimeVue version

3.20.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@forNoor forNoor added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 1, 2022
@forNoor forNoor changed the title TabMenu: we can not use Templating bacause the index of element not access in slot TabMenu: we can not use Templating bacause the index of element does not access in slot Dec 1, 2022
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 2, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.21.0 milestone Dec 2, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Dec 2, 2022
@tugcekucukoglu tugcekucukoglu changed the title TabMenu: we can not use Templating bacause the index of element does not access in slot TabMenu: we can not use tab-change event with menuitem templating Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants