-
Notifications
You must be signed in to change notification settings - Fork 329
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
Responsive table #5
Comments
@geotheory It's built with Bootstrap, so it already is responsive. Tables are tricky on mobile, though. Too many columns and things start side scrolling: I've dealt with this in the past by using Bootstrap's responsive classes and hiding certain things on mobile using This could be supported here by defining a list of individual column configuration settings (goes along with #2) |
Unfortunnatly passing dataTable responsive options doesn't work :-(
With some additional JS and CSS :
|
In order to pass in options to DataTables, you must add them to the CsvToHtmlTable.init({
csv_path: "data/Health Clinics in Chicago.csv",
element: "table-container",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
responsive: true
},
custom_formatting: [
[4, format_link]
]
}); |
Nice tool. Any plans to make this responsive?
The text was updated successfully, but these errors were encountered: