Skip to content
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

how to limit the number of rows #52

Closed
rgarimella9 opened this issue Sep 11, 2017 · 1 comment
Closed

how to limit the number of rows #52

rgarimella9 opened this issue Sep 11, 2017 · 1 comment

Comments

@rgarimella9
Copy link

i would like to list only 100 entries per page and a next button to go for next page when i am listing the csv content to table format.

rgarimella

@derekeder
Copy link
Owner

@rgarimella9 you can accomplish this by using the built-in paging in DataTables: https://datatables.net/reference/option/paging

Set the paging option to true in datatables_options:

CsvToHtmlTable.init({
    csv_path: "data/Health Clinics in Chicago.csv",
    element: "table-container",
    allow_download: true,
    csv_options: {
        separator: ",",
        delimiter: '"'
    },
    datatables_options: {
        paging: true
    },
    custom_formatting: [
        [4, format_link]
    ]
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants