You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make setProps function available in Dash so it's possible to update a prop in JavaScript and have it trigger a Dash callback.
Use Cases:
Dash AG Grid
Dash Ag Grid has a limited number of props that trigger callbacks. While the Grid's full API is accessible clientside, there are many cases where the setProps function would be useful Here are just a few examples:
Triggering a callback that includes the value of a cell when using the grid’s context menu.
Having a button in a cell update other Dash components on the page
Custom Event Listeners
This is a popular request, and it’s available in Dash Extensions
The EventListener component makes it possible to listen to (arbitrary) JavaScript events. The intended usage of the EventListener component is when the event is not already available as a Dash prop. Say that you need to listen to double-click events, but the Dash component only exposes a (single) click property; or some data that you need is not propagated from the JavaScript layer. In these cases, the EventListener component makes it possible to achieve the desired behaviour without editing the component source code.
Feature request
Make
setProps
function available in Dash so it's possible to update a prop in JavaScript and have it trigger a Dash callback.Use Cases:
Dash AG Grid
Dash Ag Grid has a limited number of props that trigger callbacks. While the Grid's full API is accessible clientside, there are many cases where the
setProps
function would be useful Here are just a few examples:Triggering a callback that includes the value of a cell when using the grid’s context menu.
Knowing which action updated
virtualRowData
Triggering a callback from a custom header component
Having a button in a cell update other Dash components on the page
Custom Event Listeners
This is a popular request, and it’s available in Dash Extensions
Setting an event listener on a component rather than the whole document
Updating a dcc.Store component clientside
There are many more requests and work-arounds posted on the forum. Let me know if you would like more examples
The text was updated successfully, but these errors were encountered: