Optionalchildren?: (props: RenderInstancesRenderProps) => ReactNodeCan be used to customize rendering of the list entirely.
Render instances including the total count of visible elements.
function MyComponent(props) {
return (
<RenderInstances instances={props.children}>
{(options) => (
<Fragment>
<div>{options.visibleInstances.length} Entries</div>
<ul>
{options.visibleInstances.map((item) => (
<li>{item.render()}</li>
))}
</ul>
</Fragment>
)}
</RenderInstances>
);
}
List of instances to render.
Use Children to declare props that contain other instances.
Optionallimit?: numberLimit the maximum number of visible instances that should be rendered.
Can be used to customize rendering of each instance.
render will be called for each visible instance.
Renders a list of instances.
Instances that have Display Conditions applied might be skipped during rendering.
Note that this means that it is not safe to use indices from the input list of instances during later render steps as the rendered list might have gaps and indices can become out of sync.
Use Children to declare props that contain other instances.