You could probably come up with an app-level bead that overwrites a utility function.
But it might be more interesting to explore providing an example of using ES5 Template Literals https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals in an item renderer. getLabelFromData is called by a dataToString, so dataToString could be overridden to return such a string literal. IMO, that would perform better since the browser JS engine would do the string substitution. Yes, it means custom item renderers, instead of interpreting labelField, but it would show that Royale can use new cool ES5 optimizations. Might require a compiler change, not sure. And it wouldn't have backward compatibility implications or monkey-patch the SDK. Just a thought, -Alex On 6/7/22, 2:56 PM, "Harbs" <harbs.li...@gmail.com> wrote: EXTERNAL: Use caution when clicking on links or opening attachments. I’d love to come up a pattern for hot-swapping utility functions, but we don’t have one yet... > On Jun 8, 2022, at 12:38 AM, Hugo Ferreira <hferreira...@gmail.com> wrote: > > Yes, I know that. > But seems a bazooka for a simple thing.