question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide an options update API, to avoid destroying and re-initializing the plugin

See original GitHub issue

Is there a method can update datepicker options, like this

$(dom).data('dateRangePicker').updateOptions({batchMode: 'month'})

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
berkandirimcommented, Apr 20, 2016

An update method would be really better than destroy() and re-init.

0reactions
monovertexcommented, Dec 6, 2018

There is not, but PRs are welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

bootstrap multiselect(refresh) is not working properly
multiselect('refresh'); - Refreshs the multiselect based on the selected options of the select. $('Id').multiselect('destroy'); - Unbinds the whole plugin.
Read more >
3. Warning: Cannot reinitialise DataTable
); The retrieve and destroy options are mutually exclusive and cannot be used together (doing so will result in undefined behaviour).
Read more >
API | Chart.js
Use this to destroy any chart instances that are created. ... This will update all scales, legends, and then re-render the chart.
Read more >
Troubleshooting CNI plugin-related errors - Kubernetes
To avoid CNI plugin-related errors, verify that you are using or ... or "Failed to destroy network for sandbox" errors, consider updating ......
Read more >
Manage Resource Lifecycle | Terraform - HashiCorp Developer
Update your configuration with lifecycle management blocks to prevent resource deletion, create resources before destroying them, and ignore changes to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found