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

fix(docs): add context-menu item click handler example #371

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

Tibing
Copy link
Member

@Tibing Tibing commented Apr 18, 2018

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

fix #265

@liganggang
Copy link

Hello, according to your steps, failed to solve the problem

@liganggang
Copy link

Is it related to version? with
Documentation is also not clear enough

@Tibing
Copy link
Member Author

Tibing commented Apr 19, 2018

Hi @liganggang , could you please share your code? And what is the problem?

@nnixaa nnixaa merged commit 96ec81b into master Apr 19, 2018
@nnixaa nnixaa deleted the fix/context-menu-docs branch April 19, 2018 10:43
@idchlife
Copy link

Example does not clarify what "filter" function is used.

Also @Tibing, maybe the problem is the same as mine.
It actually does not work.

default

default

@umarkashmiri
Copy link

umarkashmiri commented Jun 10, 2018

I did a workaround to create a component and implement my logic there and added a link to that component. e.g in your case, you need to log out. create a logout component and change your nbcontextMenu= "items"

items: [{title:"logout". link:"/logout"}]

Click subscription works but the problem is when you load the page again, one subscription is run automatically and it will not work if you want to handle logout.

@nnixaa
Copy link
Collaborator

nnixaa commented Jun 10, 2018

@Tibing could you take a look?

@nnixaa nnixaa added this to the rc.9 milestone Jun 10, 2018
@dminazarov
Copy link

@nnixaa
Hi
Can you help me?
I got a issue to control the margin property of menu title of nb-menu.
How to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: add example how to handle click on context menu
6 participants