[SOLVED] Using events - fab:open

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.


For example:

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

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