PopMenu icon indicating copy to clipboard operation
PopMenu copied to clipboard

eventhandling

Open mpnguyenreply opened this issue 9 years ago • 3 comments

Hi,

I successfully integrated PopMenu to my project. Are there any eventhandlers for the buttons?

thx

mpnguyenreply avatar Aug 28 '15 08:08 mpnguyenreply

*Please correct me if I'm wrong.

For @mpnguyenreply question, I think it could be answered by the PopMenuExample. You will find this code as below:

_popMenu.didSelectedItemCompletion = ^(MenuItem *selectedItem) { NSLog(@"%@",selectedItem.title); <-- Here is where you receive the event handlers from buttons. };

nghuiqin avatar Dec 16 '15 09:12 nghuiqin

@baby03201 _popMenu.didSelectedItemCompletion = ^(MenuItem *selectedItem) { NSLog(@"%@",selectedItem.title); }; how to swift?

pengleyang avatar Apr 21 '16 02:04 pengleyang

@pengleyang FYI popMenu.didSelectedItemCompletion = { selectedItem in print(selectedItem.title) }

nghuiqin avatar Apr 21 '16 04:04 nghuiqin