Difference between revisions of "Graph Editor"
| Line 3: | Line 3: | ||
[[File:simple_graph.png]] | [[File:simple_graph.png]] | ||
''Above is a graph which loads the [[Editing Pages#Primary content type|primary content object]] on the page, which in the example is a User object, and then displays the username in a | ''Above is a graph which loads the [[Editing Pages#Primary content type|primary content object]] on the page, which in the example is a User object, and then displays the username in a component called Header on the page''. | ||
Revision as of 20:31, 9 January 2023
The graph editor is part of the SocialStack administration panel and can be used to create data or control flows without code. It is most commonly seen as a part of the Canvas Editor as a way to connect a component with dynamic input values. For example, you might have a component which renders a grid of images. Rather than hardcoding a specific location that the array of images comes from, you can use a graph to pipe a generic array of images to the component instead. This results in much more reusable components because the props are no longer being hardcoded in the javascript and it also works particularly well with Dynamic Content Types.
Above is a graph which loads the primary content object on the page, which in the example is a User object, and then displays the username in a component called Header on the page.
