$('#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
•2013 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 Snippets
How to Enable TailwindCSS JIT Compiler
2 years ago

Laravel Eloquent "has", "whereHas", "with" and "load" Methods With Example
1 year ago

How to orderBy Eloquent Relationship in Laravel
2 years ago

How to Prevent Foreign Key Error in Laravel Migration
2 years ago

How to Add Disqus comment system to Laravel Application
2 years ago

How to Populate Laravel Database inside the Migration File
1 year ago