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

What is Framer? Join the Community
Return to index
Maksim Okala-Kulak
Posted Dec 08 - Read on Facebook

Hi there! I'm looking for a help with arrays and dynamic prototype. A simple array is used to create N layers with names:
areas = ["Workspace", "Infrastructure", "Office"]

Created layers should create N Childs (on click) using another array:
areaIsWorkspace = ["Platform", "Auth", "Integrations", "Help"]
Workspace.onClick = ->

But is it possible to achieve this without hardcoding, like:
this.onClick = ->
_createChildLayers(areaIs + "? what to insert here ? ")