[SOLVED] Using events - fab:open


#1

Hello everyone,

How do I correctly use events, specifically something like ‘fab:open’ ?

I want to execute a function when an FAB is opened, but for whatever reason I can’t make it happen.

Thanks
Dan.


#2

For example:

$$(document).on('fab:open', function() {
  // do something
})

#3

…and so that works, thanks ever so much. Not quite sure why I didn’t try that but, nevermind!

Dan.