instructure / ic-menu

accessible popup menu component
MIT License
45 stars 9 forks source link

Call ic-modal-trigger from ic-menu #15

Open seifsallam opened 10 years ago

seifsallam commented 10 years ago

Is it possible to trigger ic-modal from an ic-menu?

ryanflorence commented 10 years ago

Yes, ember makes it a bit strange though. Use the "open-when" property on the modal and have your menu action flip that to true in its select action.

Sent from my iPhone

On Jul 4, 2014, at 2:00 AM, Seif Sallam notifications@github.com wrote:

Is it possible to trigger ic-modal from an ic-menu?

— Reply to this email directly or view it on GitHub.

seifsallam commented 10 years ago

Great, one more thing, is there a way to pass an object too?

Lets say there is a table with each item has a more button, and selecting edit would trigger modal.