Perspective Flex Repeater prevent flash of default values/text "Button" on loading

Hello all,
I am working on a project that involves the dynamic filtering of a dataset that generates a dictionary list of instances via a script for a flex repeater data binding.

The issue, which I'm pretty sure is just the inherent way Perspective loads components, is when a new dataset is generated and passed through the scripts to the flex repeater, you can see the buttons display with just the text "BUTTON" on them instead of the data that I passed in the binding for a slit second before the binding data initalizes.

It is pretty much a detail problem that visually makes it look a little funky, and I have mitigated it with a small script on the meta.visible property with a time.sleep() script to display it shortly after the len(prop.instances)>0. But I am curious if there is a better way to go about this, or if perhaps I am missing a critical step/piece.

Thanks,
Taylor

Make sure the button text property is set to persistent in the editor, then save the buttons with no text present. The buttons will still appear but at least they will not have default text while waiting for the binding to return a value.

Persistent setting

2 Likes