$('#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
•937 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 get client IP address in Laravel 8
1 year ago

How to Access JSON Object Keys Having Spaces in JavaScript
8 months ago

Vue Js Fetch and Display HTML from Server Using Ajax
1 year ago

How to Add Custom Attribute In Laravel Eloquent
1 year ago

Best way to run Composer Update in Production
1 year ago

Getting Started With Expose to Share Local Laravel Sites Online
1 year ago