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

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

Is it possible to create custom/arbitrary properties on layers? I'm working on a calendar interface, and would like to be able to read the value of the date from the tapped layer.


JT DiMartile

do you want to prototype layer? or make a class that extends layer? You should just be able to simply use

layer = new Layer = new Date

print layer

Chris Camargo

Thanks! I was trying to set a custom property in the constructor. Has to be after construction. Cheers!

JT DiMartile

No problem. I only know the answer from making the error a bunch of times :)

Read the entire post on Facebook