Function createIndexedDbWidgetStorage

  • A key-value store for the widget over IndexedDB: one object store of JSON texts under the widget's keys, one transaction per call. Pass the page's indexedDB; importing this module needs no browser. The store's code loads as the first store is created (since 2.5.10): calls made before it arrives wait for it.

    createWidget(el, { persist: 'desk', storage: createIndexedDbWidgetStorage(indexedDB, 'my-app-charts') });
    

    Parameters

    Returns IndexedDbWidgetStorage