You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nathan Quirynen <na...@pensionarchitects.be> on 2019/08/07 13:05:12 UTC
Configure requirejs
Hey,
How can I configure requirejs in Tapestry? I want to set the
"waitSeconds" option for the whole application. How can I achieve this?
Thanks,
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Configure requirejs
Posted by Cezary Biernacki <ce...@gmail.com>.
Hi,
in your Layout component you need to add something like:
private static final ModuleConfigurationCallback CONFIGURE_WAIT_SECONDS
= (config) -> config.put("waitSeconds", 120);
@AfterRender
public void configureRequireJS() {
javaScriptSupport.addModuleConfigurationCallback(CONFIGURE_WAIT_SECONDS);
}
Best regards,
Cezary
On Wed, Aug 7, 2019 at 3:05 PM Nathan Quirynen <na...@pensionarchitects.be>
wrote:
> Hey,
>
> How can I configure requirejs in Tapestry? I want to set the
> "waitSeconds" option for the whole application. How can I achieve this?
>
> Thanks,
>
> Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>