This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
John Marstall
Posted Jun 08 - Read on Facebook

Hey Framer folks. I'm trying to allow a module to call (when a layer is clicked) a function from the main The function would be up to the user to customize. I've read that this can be done by passing the function as an argument to the module.

I'm very new to modules and so I'm not clear how or where this fits into the module constructor.

I've created a pastebin with the relevant bits here:

I know it's wrong. Any help would be appreciated. Thanks!


Jonas Treub

You mean something like this?

Jonas Treub

Inside the module I check if the function "functionVariable" exists and if so, it is called on a click.

Read the entire post on Facebook