PrimeNg (Angular): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 111: | Zeile 111: | ||
=== Font Awesome === | === Font Awesome === | ||
[https://fontawesome.com/icons | [https://fontawesome.com/v4.7.0/icons/ https://fontawesome.com/v4.7.0/icons/] | ||
[https://fontawesome.com/v4.7.0/examples/ https://fontawesome.com/v4.7.0/examples/] | [https://fontawesome.com/v4.7.0/examples/ https://fontawesome.com/v4.7.0/examples/] |
Version vom 19. Juli 2018, 08:14 Uhr
General
Installation
npm install primeng --save npm install primeicons --save npm install font-awesome --save
fa-fw: Fixed Width
angular.json
Hier wird omega/theme.css verwendet, es gibt jedoch verschiedene verfügbare Themes:
"styles": [ "src/styles.css", "node_modules/primeicons/primeicons.css", "node_modules/font-awesome/css/font-awesome.min.css", "node_modules/primeng/resources/themes/omega/theme.css", "node_modules/primeng/resources/primeng.min.css" ],
app.module.ts
import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule} from '@angular/platform-browser/animations';
imports: [ BrowserModule, BrowserAnimationsModule, ... ],
TreeTable
app.module.ts
import { AccordionModule } from 'primeng/accordion'; import { TreeTableModule } from 'primeng/treetable';
imports: [ ... TreeTableModule, AccordionModule, ... ],
Inline Editing
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
imports: [ ... FormsModule, ReactiveFormsModule, ... ],
Pagination
import { PaginatorModule } from 'primeng/paginator';
imports: [ ... PaginatorModule, ... ],
Context Menü
import { ContextMenuModule } from 'primeng/contextmenu';
imports: [ ... ContextMenuModule ... ],
Links
Demos
https://github.com/primefaces/primeng
Icons
Font Awesome
https://fontawesome.com/v4.7.0/icons/
https://fontawesome.com/v4.7.0/examples/
Zurück zu JavaScript