Tabla de Datos y Lista Paginada para Angular | ng-hub-ui-paginable
Tabla de datos y lista paginada para Angular con paginación server-side, ordenación, filtros, selección, plantillas y variables CSS.
Referencia API
Inputs
data (Obligatorio)
Tipo: T[] | Observable<T[]>
Array of data items to display in the table or Observable that emits data arrays
headers (Obligatorio)
Tipo: PaginableTableHeader[]
Configuration array defining table columns and their properties
pagination
Tipo: PaginableTablePagination
Pagination configuration including page size, current page, and total items
options
Tipo: PaginableTableOptions
General table options including selection mode, loading state, and responsive behavior
loading
Tipo: boolean
Shows loading state with spinner overlay
selected
Tipo: T[]
Array of currently selected items (two-way binding supported)
Outputs
rowClick
Tipo: TableRowEvent<T>
Emitted when a table row is clicked, includes row data and event details
selectionChange
Tipo: T[]
Emitted when row selection changes, returns array of selected items
sortChange
Tipo: PaginableTableOrdination[]
Emitted when column sorting changes, returns current sort configuration
filterChange
Tipo: FilterChangeEvent
Emitted when filters are applied or changed
pageChange
Tipo: PaginationState
Emitted when pagination changes (page number or size)
Templates
*paginableTableHeader
Custom header template for defining custom column headers
Ejemplo:
*paginableTableCell
Custom cell template for customizing cell content rendering
Ejemplo:
*paginableTableRow
Custom row template for defining entire row structure
Ejemplo:
*paginableTableFilter
Custom filter template for adding filtering UI elements
Ejemplo:
*paginableTableLoading
Loading state template for custom loading indicators
Ejemplo:
*paginableNoResults
Empty state template displayed when no data is available
Ejemplo:
*paginableTableError
Error state template for handling error conditions
Ejemplo:
Variables CSS
Colores
Variables de color para personalizar la apariencia de la tabla
--table-bg-color
Tipo: color
Por defecto:#ffffff
Background color of the table
--table-border-color
Tipo: color
Por defecto:#dee2e6
Border color for table cells and headers
--table-header-bg
Tipo: color
Por defecto:#f8f9fa
Background color of table headers
--table-header-color
Tipo: color
Por defecto:#495057
Text color of table headers
--table-row-hover-bg
Tipo: color
Por defecto:#f5f5f5
Background color when hovering over rows
--table-stripe-bg
Tipo: color
Por defecto:#f9f9f9
Background color for striped rows
--table-selected-bg
Tipo: color
Por defecto:#e3f2fd
Background color for selected rows
--table-sort-indicator-color
Tipo: color
Por defecto:#007bff
Color of sort direction indicators
--table-loading-overlay-bg
Tipo: color
Por defecto:rgba(255, 255, 255, 0.8)
Background color of loading overlay
--table-pagination-active-bg
Tipo: color
Por defecto:#007bff
Background color of active pagination button
Estilos y theming
Todavía no hay ejemplos de estilos documentados. Esta sección incluirá recetas de personalización y ejemplos de theming.