$('#my-data-table').DataTable({ columnDefs: [ { targets: [1, 2], className: "text-right" }, ] });
How to right align numeric data in dataTables?
Learn how to align numeric columns to the right side in dataTable the easy way. Make use of this method to the right align columns such as currency and percentage values.
Created on Nov 07, 2021
•2205 views
If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️
Load comments for How to right align numeric data in dataTables?
PostSrc Code Components
Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.
View ComponentsSponsors 👑
+ Add YoursOther Code Snippets
All SnippetsBest Practices for Custom Helpers in Laravel 8
2 years ago
Get Specific Column From Laravel Model
2 years ago
Laravel Chunk Result
2 years ago
How to Redirect back with Input and Error Message in Laravel 8
2 years ago
How to Seed Database After Deploying Laravel Application to Heroku
2 years ago
How to Listen to Select2 event when selected
2 years ago