Gathering detailed insights and metrics for ng-table-pg
Gathering detailed insights and metrics for ng-table-pg
Un componente de tabla potente y flexible para aplicaciones Angular con funciones integradas de ordenamiento, filtrado, paginación y arrastrar y soltar.
npm install ng-table-pg
Typescript
Module System
Node Version
NPM Version
68.3
Supply Chain
95.1
Quality
83
Maintenance
50
Vulnerability
98.6
License
TypeScript (70.91%)
HTML (25.6%)
SCSS (3.49%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
65
Last Day
1
Last Week
65
Last Month
65
Last Year
65
MIT License
6 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 06, 2025
Minified
Minified + Gzipped
Latest Version
0.0.1
Package Id
ng-table-pg@0.0.1
Unpacked Size
180.27 kB
Size
35.18 kB
File Count
15
NPM Version
10.8.2
Node Version
20.18.2
Published on
Feb 06, 2025
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
65
Compared to previous week
Last Month
0%
65
Compared to previous month
Last Year
0%
65
Compared to previous year
1
Un componente de tabla potente y flexible para aplicaciones Angular con funciones integradas de ordenamiento, filtrado, paginación y arrastrar y soltar.
1npm install ng-table-pg
Instala las dependencias requeridas:
1npm install @angular/cdk file-saver xlsx @ngx-translate/core
Inicia el servidor de desarrollo:
1ng serve
Navega a http://localhost:4200/
. La aplicación se recargará automáticamente si cambias alguno de los archivos fuente.
Compila la librería:
1ng build table-lib
Los archivos compilados se almacenarán en el directorio dist/
.
Ejecuta las pruebas unitarias vía Karma:
1ng test table-lib
1import { TableComponent } from 'ng-table-pg'; 2 3@NgModule({ 4 imports: [ 5 TableComponent 6 ] 7})
1import { Component } from '@angular/core'; 2 3@Component({ 4 template: ` 5 <ng-table-pg 6 [data]="items" 7 [columns]="columns" 8 [loading]="loading" 9 ></ng-table-pg> 10 ` 11}) 12export class YourComponent { 13 items = [...]; 14 columns = [ 15 { key: 'id', label: 'ID' }, 16 { key: 'name', label: 'Nombre' }, 17 { key: 'email', label: 'Correo' } 18 ]; 19}
1interface ITableColumns { 2 key: string; // Clave de la propiedad del objeto de datos 3 label: string; // Etiqueta del encabezado de la columna 4 width?: string | number; // Ancho de la columna 5 type?: "date" | "date-time" | "currency" | "boolean" | "status" | "state"; 6 transform?: (value: any, item: any) => any; // Transformador de valor personalizado 7}
1interface ITableActions { 2 label: string; // Etiqueta del botón 3 handler: (item: any) => void; // Manejador del clic 4 show?: (item: any) => boolean; // Visualización condicional 5}
Estructura requerida para las traducciones:
1{ 2 "TABLE": { 3 "SEARCH": "Buscar...", 4 "FILTERS": "Filtros", 5 "SHOWING": "Mostrando", 6 "OF": "de", 7 "RESULTS": "resultados", 8 "EXPORT_CSV": "Exportar CSV", 9 "EXPORT_EXCEL": "Exportar Excel", 10 "ACTIONS": "Acciones" 11 } 12}
git checkout -b feature/CaracteristicaIncreible
)git commit -m 'Añadir alguna CaracteristicaIncreible'
)git push origin feature/CaracteristicaIncreible
)Este proyecto está licenciado bajo la Licencia MIT - ver el archivo LICENSE para más detalles.
Para soporte, por favor abre un issue en el repositorio de GitHub o contacta directamente al autor.
No vulnerabilities found.
No security vulnerabilities found.