Contenido v1.0.0

Tabla de datos

Un componente de tabla de datos flexible con funciones componibles. Soporta paginación, ordenamiento, filtrado, búsqueda, selección de filas con acciones masivas, exportación CSV y alternancia de visibilidad de columnas. Todas las funciones se habilitan mediante opciones y pueden combinarse según sea necesario.

Vista Previa y Código

Opciones

Nombre Tipo Predeterminado Descripción
data * Array requerido Array of hashes representing table rows
columns Array nil Optional column config [{ key: :name, label: 'Name' }]. Auto-inferred from data keys if omitted
pagination Boolean/Integer false Enable pagination. Set to integer (10, 25, 50) to set default per-page
sortable Boolean false Enable column sorting by clicking headers
searchable Boolean false Enable global search input
filterable Boolean false Enable per-column filtering (includes sorting)
selectable Boolean false Enable row checkboxes for bulk selection
exportable Boolean false Enable CSV export button
column_toggle Boolean false Enable show/hide columns dropdown
class String "" Additional CSS classes for the container

Registro de Cambios v1.0.0

- v1.0.0: Initial release with full feature set
- Client-side pagination with configurable rows per page
- Click-to-sort column headers with ascending/descending toggle
- Global search with debounced filtering
- Per-column filter inputs
- Row selection with select-all checkbox
- CSV export of current filtered/sorted data
- Column visibility toggle with dropdown

Obtener Acceso Completo

Desbloquea el código fuente de este componente y todos los demás. Un solo pago para acceso de por vida.

Obtener Acceso