datatable in ionic5
https://www.positronx.io/create-ionic-data-table-with-ngx-datatable/
npm install @swimlane/ngx-datatable --save
import below code in app.module.ts
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
NgxDatatableModule
First, go to assets folder and create styles > ngx-datatable folder inside the assets folder.
add below lines in
# node_modules > @swimlane > ngx-datatable > index.css
# node_modules > @swimlane > ngx-datatable > themes > bootstrap.css
# node_modules > @swimlane > ngx-datatable > themes > dark.css
# node_modules > @swimlane > ngx-datatable > themes > material.css
Copy the fonts folder and icons.css from the following path..
# node_modules > @swimlane > ngx-datatable > assets > fonts
# node_modules > @swimlane > ngx-datatable > assets > icons.css
Next, paste data table theme files, fonts folder and icons.css file inside the following path.
# app > assets > styles > ngx-datatable
Now, change the name of these data table files as given below.
_index.css
_bootstrap.css
_dark.css
_icons.css
_material.css
Next, go to app/assets/styles/ngx-datatable/_icons.css file and update data-table @font-face path as given below.
Comments
Post a Comment