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

What is Framer? Join the Community
Return to index
Igor Dvorkin
Posted Jan 23 - Read on Facebook

Can I set the id for a layer? I see I can set the name, but id seems like the right attribute to set. .


George Kedenburg III

Nope, id is read only

Brian Williams

As far as I know it's not something you would ever need or want to set

Igor Dvorkin

Brian Williams I'm trying to interop with some javascript library. The normal way I find elements is by ID. Is there a better way?

Eelco Lempsink

You can use the (internal) _element property of layers to directly get the HTML element, no querying necessary.

Read the entire post on Facebook