Can we use multiple CSV once?
Closed this issue · 2 comments
DevelopMod commented
Hello, this is not an issue, it is just an idea or a question that I didn't discover yet.
Does it have an option to load multiple CSV once?
derekeder commented
no, the library doesn't support this. i would recommend merging the CSV files into one yourself in a separate step before using it with this
shipurjan commented
CsvToHtmlTable.init({
csv_path: "data/pending_items.csv",
element: "table-container2",
allow_download: false,
title: "Pending items",
csv_options: {
separator: "\u0001",
delimiter: '"'
},
datatables_options: {
paging: false
},
custom_formatting: [
[2, format_link],
]
});
CsvToHtmlTable.init({
csv_path: "data/resell_history.csv",
element: "table-container",
allow_download: false,
title: "Resell history",
csv_options: {
separator: "\u0001",
delimiter: '"'
},
datatables_options: {
paging: false
},
custom_formatting: [
[2, format_link],
[8, colorize_profit]
]
});
I just used two init functions to initialize them, but it's not how it's intended to be used (however in my case it doesn't make any problems)