I have found the answer.
Add this code to the component.xml:
<component
id="ConditionalTable"
title="Conditional Table"
icon="res/icon.png"
handlerType="div"
propertySheetPath="res/additional_properties_sheet/additional_properties_sheet.html" databound="true">
<jsInclude>res/js/component.js</jsInclude>
<cssInclude>res/css/component.css</cssInclude>
<property
id="resultset"
title="Resultset Filters"
type="ResultSet"
group="DataBinding">
</property>
Then in the oComponentProperties of the This object, the data can be found. It is contained in the resultset property. resultset is the id that I gave the ResultSet in the components.xml. Now, the data just needs to be decoded, so that it can be arranged properly in a table.