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

Add menubar-left and menubar-right slots to Menubar #246

Closed
wanglin86769 opened this issue Mar 19, 2020 · 1 comment
Closed

Add menubar-left and menubar-right slots to Menubar #246

wanglin86769 opened this issue Mar 19, 2020 · 1 comment
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@wanglin86769
Copy link

How can I add a logo image on the leftmost of the PrimeVUE menubar? Like the logo image on the topleft of this github website.

@cagataycivici cagataycivici changed the title Logo image on menubar Add menubar-left and menubar-right slots to Menubar Mar 19, 2020
@cagataycivici cagataycivici self-assigned this Mar 19, 2020
@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 19, 2020
@cagataycivici cagataycivici added this to the 1.2.0 milestone Mar 19, 2020
@cagataycivici
Copy link
Member

Using this as a new request to add two new slots, currently you can use the default slot and it will be rendered at the right side, you can move it to left with css though.

See the sample at

https://primefaces.org/primevue/showcase/#/menubar

<Menubar :model="items">
    <img src="logo.png"/>
</Menubar>
.p-menubar .p-menubar-custom {
   float: left;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants