Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Making setProps available #2701

Closed
AnnMarieW opened this issue Nov 25, 2023 · 1 comment
Closed

[Feature Request] Making setProps available #2701

AnnMarieW opened this issue Nov 25, 2023 · 1 comment
Labels
feature something new P1 needed for current cycle

Comments

@AnnMarieW
Copy link
Collaborator

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:

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.

  • 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

@Coding-with-Adam Coding-with-Adam added feature something new P1 needed for current cycle labels Nov 27, 2023
@AnnMarieW
Copy link
Collaborator Author

Closed by #2758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P1 needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants