如何为闪亮的selectizeGroup过滤器添加书签?

问题描述

我尝试为 selectizeGroup(来自shinyWidgets)过滤器添加书签。我使用了 onBookmark 和 onRestore,但它似乎没有存储用户设置的过滤器。

这里是这个问题的示例代码

const URL_DATA = 'https://gist.githubusercontent.com/AyanBhadury/f8386b94f41f234e6420f8c4639f34cb/raw/885678b394173e6b445a67ba4917d88b6f02bd0b/data.json';
const URL_SCHEMA = 'https://gist.githubusercontent.com/AyanBhadury/1fcf98cf01f313b1d9a8703c0e4920b7/raw/1ef2bddcea5d0b92b4581dfb1e534af7a1cda806/schema.json';

const jsonify = res => res.json();
const dataFetch = fetch(URL_DATA).then(jsonify);
const schemaFetch = fetch(URL_SCHEMA).then(jsonify);

Promise.all([dataFetch,schemaFetch]).then(([data,schema]) => {
  var fusionTable = new FusionCharts.DataStore().createDataTable(data,schema);

  new FusionCharts({
    type: 'timeseries',renderAt: 'container',width: "90%",height: 490,dataSource: {
    caption: {
      text: "NewYork City - Temparature variations (2019)"
    },data:fusionTable,subcaption: {
      text: "Daily min,max and average temperatures"
    },chart: {
      showlegend: 1
    },yaxis: [
      {
        title: "Temperature in Celcius",plot: [
          {
            value: {
              high: "High",low: "Low"
            },type: "area-range",name: "Area ranged plot",style: {
              "plot": {
                "fill-opacity":"0.3"
              }
              }
          },{
            value: "Mean",type: "line"
          }
        ]
      }
    ]
  }
  }).render();

});

关于如何为 selectizeGroup 中设置的所有过滤器添加书签的任何想法?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)