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

What is Framer? Join the Community
Return to index
Chris Camargo
Posted May 02 - Read on Facebook

What's the easiest way to import and work with classes in FramerJS? I'm creating some classes to help members of my team create their own prototypes using a standard set of UI controls that have logic built-in. I'd like to avoid having them copy/paste the entire set of classes into each prototype. Is there a good way to import them without modules? If not, is it easy to turn a control class into a module?

4 Comments

Jordan Robert Dobson

yeah: check out how I implemented my class as a module in my StatusBar code here: http://jrdn.io/aq0c

Chris Camargo

You da man, Jordan Robert Dobson!

Adria Jimenez

Hey Jordan Robert Dobson I submitted some modules to Framerco.de and they never appear on the site. Do you have any idea what happens?

Koen Bok

This is some pretty great documentation on it: https://arcturo.github.io/library/coffeescript/03_classes.html

Read the entire post on Facebook