Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jqgriddownload
Advanced tools
CSV download plugin for free-jqgrid: https://www.npmjs.com/package/free-jqgrid
jqgrid_download is a convenient simple csv download plugin for the free-jqgrid.
<script type="text/javascript" src="https://foo.com/node_modules/jqgriddownload/dist/jqgriddownload.js"></script>
.jqGrid("navButtonAdd", "#grid_toppager", {
caption: "Download CSV",
id:"download",
buttonicon: "fa-file-excel-o",
onClickButton: function(err,res){
jQuery(this).jqGrid("jqgrid_download",'csv');
}
}).jqGrid("navButtonAdd", "#grid_toppager",
{
caption: "Excel",
id: "Excel",
buttonicon: "fa-file-excel-o",
onClickButton: function(err, res)
{
jQuery(this).jqGrid("jqgrid_download", 'xlsx');
}
});
jQuery("#grid").jqGrid(
{
colModel: col_model,
data: data,
loadonce: true,
beforeRequest: function(id)
{
setTimeout(function()
{
waitingDialog.hide();
}, 1000);
},
rownumbers: true,
iconSet: 'fontAwesome',
searching:
{
defaultSearch: "bw"
},
pagger: true,
rowNum: 50,
sortname: "invdate",
sortorder: "desc",
toppager: true,
caption: 'Pictures',
logger: 'jqgriddownload',
autowith: true,
shrinkToFit: false,
cmTemplate:
{
autoResizable: true,
editable: true
}
}).jqGrid("filterToolbar",
{
searchOnEnter: true,
enableClear: false
}).jqGrid("gridResize").jqGrid("inlineNav",
{
edit: false,
add: false,
save: true,
cancel: true
}).jqGrid("navButtonAdd", "#grid_toppager",
{
caption: "Excel",
id: "Excel",
buttonicon: "fa-file-excel-o",
onClickButton: function(err, res)
{
jQuery(this).jqGrid("jqgrid_download", 'xlsx');
}
});
GPL licenses Module to Download CSV or Excel files from Jqgrid
Kind: inner method of Jqgriddownload
Param | Type | Description |
---|---|---|
-- | string | check if integer |
Kind: inner method of Jqgriddownload
Param | Type | Description |
---|---|---|
ws | string | format: csv or xlsx |
string
Kind: inner method of Jqgriddownload
Returns: string
- = string like '02/06/2023'
Example:: your col_model :
....
{'name': 'order_date', 'download_formatter': 'date_formatter--dd/mm/yyyy'},
....
Param | Type | Default | Description |
---|---|---|---|
cell_value | string | cel_value as a string, for the moment only iso 112 20230602 is supported | |
format | string | "dd/mm/yyyy" | format, style like 'dd/mm/yyy' |
string
Kind: inner method of Jqgriddownload
Returns: string
- = string like '02/06/2023'
Example:: let d = new Date();
let x = date_to_string(d,'dd/mm/yyyy');
console.log(x);
Param | Type | Description |
---|---|---|
date | object | date object |
y | string | format, style like 'dd/mm/yyy' |
FAQs
CSV download plugin for free-jqgrid: https://www.npmjs.com/package/free-jqgrid
We found that jqgriddownload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.