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

Unable to update selected blocks #52

Closed
LudovicF42 opened this issue Feb 17, 2020 · 1 comment
Closed

Unable to update selected blocks #52

LudovicF42 opened this issue Feb 17, 2020 · 1 comment
Labels
🔧 Enhancement New feature or request

Comments

@LudovicF42
Copy link

LudovicF42 commented Feb 17, 2020

Describe the bug
I want to update selected blocks by code.

I tried by using your "deep state observer" but it doesn't work.
I think the state is updated but not the class with the "--selected" suffix (and then the css) because it is out of the "mouse down" flow.

To Reproduce

an example :

selection.push("2:2020-02-18","2:2020-02-19","2:2020-02-20","2:2020-02-21","2:2020-02-22","2:2020-02-23","2:2020-02-24","2:2020-02-25");

state.update("config.plugin.selection.selected.chart-timeline-grid-row-blocks", selection);
@neuronetio neuronetio added the 🔧 Enhancement New feature or request label Feb 18, 2020
@neuronetio
Copy link
Owner

In v3 it is possible. There will be documentation for it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants