Set table widget content property
Last updated
Last updated
This example explains how to update a composition's table widget’s content.
comp.findWidget()
widget.setPayload()
Load this example composition to follow along in a real composition.
The example composition has one sub-composition called Standings, as you can see in the composition tree.
To see the sub-composition's payload:
Double-click the Standings sub-composition in the composition tree.
Select the standingsTable widget and then the table tab in the property panel.
To see this sub-composition's widgets:
Open the composition script editor within the same example composition as above and select the Lower composition script.
In the composition navigator, select the Widget Explorer tab.
This composition contains three widgets, but for this quick start, you'll look at its Table widget, which is called standingsTable in the composition.
Now that you've located the composition's table widget, learn how to set its content by reading the comments in the Standings composition script.
You can also copy and paste the composition script below into your own compositions.