Pricing Blog

Can I listen to a component event?

  • paspom-1383517918343729152

    Pascal

    1 month ago

    To be specific:
    I'm building a package
    this package has its internal Menu Interaction system
    I want to utilize the Spark Swipe Handler to make it close my menu element
    I want this without any setup in a separate project component
    Instead: I want to listen to the onSwipeOut event – but I can't do a getElementById of course because the event is by the component