Widget
Provides a generic widget that can use most third party JavaScript widgets.
Last updated
Was this helpful?
Provides a generic widget that can use most third party JavaScript widgets.
Last updated
Was this helpful?
The Widget
control enables integration of JavaScript libraries into Wisej.NET applications. It loads custom JavaScript and CSS libraries at runtime, allowing you to utilize and containerize custom controls.
These integrated controls can be configured with server-side resources and trigger server-side events.
Wisej.NET provides a streamlined infrastructure for client-server messaging between individual controls.
Use the fireWidgetEvent
method to send messages from client to server by attaching to the client-side widget event:
Check the Browser console for important messages when debugging the Widget
.
The application routes received event data to the corresponding server-side control's WidgetEvent
handler:
Use the Instance
dynamic member to send messages to the client-side widget.
First, define a function in your client-side Widget.InitScript
:
Then call this method using CallAsync
or Eval
from the server-side instance:
Class name
"wisej.web.Widget"
Theme appearance
Source code
"widget", see .