Not able to invoke method call from Theme's Default razor component. #4721
-
I have created a test theme, and from Thanks for any help or suggestions.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Clicks are interactive thus you need to set the site to interactive, in your site settings. |
Beta Was this translation helpful? Give feedback.
-
@techravi007 by default when you create a site in Oqtane it uses Static Server Rendering (SSR). This means that the theme component will be rendered statically on the server and is not interactive - so you cannot use onclick events on buttons. I would suggest you watch the following webinar so that you can understand the different render modes in Blazor: https://www.youtube.com/watch?v=1lsjpfdqBk0 As @leigh-pointer mentioned above, one possible option is to configure your site to be fully interactive (in Site Settings). This will make all components in the entire site render interactively. However the downside to this approach is that interactivity requires a lot of system resources and does not scale as well as static rendering. So it really depends on what you are trying to accomplish with your site. |
Beta Was this translation helpful? Give feedback.
-
@sbwalker thanks for the detailed information and video. 🙏 |
Beta Was this translation helpful? Give feedback.
Clicks are interactive thus you need to set the site to interactive, in your site settings.