Skip to navigation
Feeding a one level pouchdb doc into jqgrid
01.10.19
let doc = await get_doc('mydb','profile'); let data = []; let ex = ['_id', '_rev' ]; for(let i in doc) { if(! ex.includes(i)) { data.push({ id:i, key:i, value:doc[i] }); } } jQuery(function () { "use strict"; jQuery("#grid").jqGrid({ autowith:true, iconSet: 'fontAwesome', searching: {defaultSearch: "bw"}, pagger: true, rowNum:100, toppager: true, colModel: [ { name: "key" }, { name: "value" } ], data: data }).jqGrid("filterToolbar").jqGrid("inlineNav").jqGrid("gridResize"); });
https://pouchdb.com/
Reply
Anonymous
Information Epoch 1732624486
Data dominates.
Home
Notebook
Contact us