I'm developing a custom visualization for Kibana using the base visualization type. For part of my visualization, I have an options template HTML file with sliders and checkboxes that are used to set some vis.params in the code. The numbers/booleans set by these work temporarily (upon clicking the blue 'refresh' button built into the visualization menu), but upon a full browser refresh they are not retained, even if I save the visualization. The sliders just move back to their default of the midpoint and the checkbox goes back to its default of false.
How can I get my plugin to retain the values set in the editor panel even after a save/refresh? I'm using vis.params.[parameter_name] to access and store the parameters as displayed in the Kibana docs.
Thanks in advance!