简体   繁体   中英

Turbo table in PrimeNG with styling

I am using turbo table for displaying data. But I am not getting borders for table. I installed PrimeNG from CLI and imported themes in styles section in angular-cli.json .

You will need to make sure the following is present :

In your index.html file the following link references:

<link rel="stylesheet" type="text/html" href="/node_modules/primeicons/primeicons.css" />

<link rel="stylesheet" type="text/html" href="/node_modules/primeng/resources/themes/redmond/theme.css" />

<link rel="stylesheet" type="text/html" href="/node_modules/primeng/resources/primeng.min.css" />

Then make sure the styles.css has the right theme import eg:

@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';

Also make sure in your package.json the dependencies is there:

"primeicons": "^1.0.0-beta.6",
"primeng": "^6.0.0-beta.1"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM