$('#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
•71 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 Fix Laravel "Log Could Not be Opened " Error?
7 months ago

Make Laravel Nova Relation Searchable
9 months ago

How to Pass Data From Livewire Component to Layout Page
9 months ago

How to get query builder to output its raw SQL query as a string in Laravel?
7 months ago

How to check and access environment in Laravel Blade view?
9 months ago

How to Conditionally Query Eloquent in Laravel
7 months ago