4

Can somebody give me example of ui:menuTrigger and how it is different from ui:menuTriggerLink? Current document doesn't have any example for ui:menuTrigger. Any help will be appriciated.

1

There's really no reason to use ui:menuTrigger. You should always use ui:menuTriggerLink instead. Here's an example with explanation for a component that uses ui:menuTriggerLink:

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_ui_menu.htm

1

It is not documented but I have used ui:menuTrigger for using button and custom template instead of link.

<ui:menuTrigger>
  <!-- button or custom template -->
</ui:menuTrigger>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.