-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add autofilter or sort properties #472
Comments
Can You share example how to add autoFilter for header? |
Sure. Edit write_ws_xml(idx, opts, wb) function in xlsx.js or its minified, depending on which one is referred, and add the bold text in between the other code lines. `if(o.length>sidx+1) { o[o.length] = (''); o[sidx]=o[sidx].replace("/>",">"); } o[o.length]=writextag('autoFilter',null,{ref:ref}); if(ws['!merges'] !== undefined && ws['!merges'].length > 0) o[o.length] = (write_ws_xml_merges(ws['!merges']));` |
Thank You! It's works fine! I suggest send your changes as pull request. |
We're attaching the autofilter range as the We're pushing a change to add autofilter metadata in the worksheet worksheet['!autofilter'] = { ref: "A1:C20" }; |
- XLSX/XLSB read/write autofilter - XLS/XLML/*ODS read autofilter - Workbook Properties override via Props option - XLSB write sheet protection Issues: - fixes SheetJS#472 h/t @nishthasb - fixes SheetJS#478 h/t @Yonatannn - see SheetJS#623 h/t @jcarvin
Hi,
I have to do an export in excel where autofilter or sort is required. If i add similar as below code in xlsx.js or minified file, it works. But on server, we get the js-xlsx files from bower directly, so I can not use the locally edited files. Would you be willing to edit the files for filtering or sorting ?
In function write_ws_xml(idx, opts, wb) {
...
at line no 7562-->o[o.length]=writextag("autoFilter",null,{ref:ref});
...
}
The text was updated successfully, but these errors were encountered: