Has anyone got an approach for adding a lang = "en" to a reactive app? We have tried httprequesthandler AddAttributeToHtmlTag in the pages OnInitialize, OnRender and OnReady with no success.
Hi Paul,
Do you want to add a global language attribute like this:
<html lang="en">...</html>
You need some javascript in the OnReady event of your screen:
Then the generated HTML looks like this:
or like this:
<p lang="en">This is a paragraph in English.</p>
The latter should be possible using the attributes on the widget of a screen or block:
And this the generated HTML
Regards,
Daniel
Paul Davies wrote:
Hi Paul
Could you please explain in more details what you wanted to achieve?
Thanks Daniel worked like a charm.
You are welcome Paul!