$('#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
•1454 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 Save Multiple Records at Once in Laravel Eloquent
1 year ago

How to Run Artisan Command from Code in Laravel
1 year ago

How to Solve Laravel Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
1 year ago

How to Access stdClass Property that has Spaces in PHP
1 year ago

How to make Axios PATCH Request
1 year ago

How To Select Specific Columns in Laravel 8 Eloquent
1 year ago