webflow-react icon indicating copy to clipboard operation
webflow-react copied to clipboard

Generate default controllers for components with sockets

Open oalexdoda opened this issue 5 years ago • 0 comments

Let's say you have a component called "menu". And Then you have multiple "menuItem" components inside that menu. A default controller (or meta?) could be generated by the script under "default.js" where it would work like this:

  • If there's multiple "menuItem" components inside "menu", it would create a content map using the "wfr-d" data points in each menu item. Rather than having to define data points for each "menuItem" component, it would try to identify the children of each menuItem (by class) and map those out.

oalexdoda avatar Aug 28 '19 11:08 oalexdoda