Using variable as Locale for the SUPERB Wappler Calendar?

Is it possible to specify a variable within the page as the locale for the Calendar?

My variable is called callang, which is taken from the logged in users profile Server Action…

How would I specify this inside of:

locale=“MYVARIABLEHERE”

If at all possible? Have tried several ways but none seem to work.

Thanks in advance!

you can use a dynamic attribute for the locale attribute. I see that we haven’t included it on the UI … will add it for the next update.

For now you can just enter it in the code like:

dmx-bind:locale="your_app_connect_var_or_expression"

the expression should result in one of the locales of course
It will even live update if the expression change (like having the choice in a dropdown or cookie or whatever)

2 Likes

I had absolutely no doubt at all you would have an answer to my question. Absolutely faultless support and always appreciated. You guys work so hard when you should be relaxing with your family and friends. Thanks George you make my life so much easier.

4 Likes