Is it possible to create a reusable function, see example below, that can be called with arguments within a component? I am attempting to format multiple values in different components placed on a single retool page while trying to do so without having to redefined the function within each component.
It would be ideal if I can do something like this {{ reusableFunction(selectedRow.col1.value, selectedRow.col2.value) }}
for each applicable component rather than this {{ selectedRow.col1.value + selectedRow.col2.value }}
.
resource - reusableFunction
function reusableFunction(arg1, arg2) {
return arg1 + arg2
}