Pular para o conteúdo
Skillpedia
Sites e telas (frontend)29 mil · #9837

table-features

O que ela faz

Esta habilidade explica como ativar recursos de tabela e corrigi-los quando não se comportam como esperado. Serve para desenvolvedores que querem ordenação, filtragem ou paginação em uma tabela feita com a biblioteca.

Quando usar

  • ✓Quando você precisa adicionar ordenação, filtragem, paginação ou seleção a uma tabela TanStack.
  • ✓Quando um recurso como a ordenação parece não fazer nada e você precisa verificar o seu registro.
  • ✓Quando você precisa saber qual recurso um modelo de linhas ou uma função de ordenação exige.

Link da skill

https://github.com/TanStack/table/blob/main/packages/table-core/skills/table-features/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/TanStack/table/blob/main/packages/table-core/skills/table-features/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Adicionei ordenação à minha tabela TanStack, mas clicar nos cabeçalhos não faz nada. Como corrijo?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

Ela mostra como registrar cada recurso e o seu modelo de linhas na lista de recursos, já que uma tabela recebe apenas o comportamento que registra, e explica os pré-requisitos de cada um.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Feature architecture

Read core first for the headless model and stable inputs.

Register the behavior the table uses

<!-- skill-snippet:check -->
import {
  createSortedRowModel,
  rowSortingFeature,
  sortFn_alphanumeric,
  tableFeatures,
} from '@tanstack/table-core'

export const features = tableFeatures({
  rowSortingFeature,
  sortedRowModel: createSortedRowModel(),
  sortFns: { alphanumeric: sortFn_alphanumeric },
})

Pass the stable features object to the installed adapter constructor. The concrete registry determines optional APIs, options, state slices, and their types. The core row model is automatic; a custom core model uses coreRowModel.

Registration rules

  • Register each prerequisite feature before its dependent slot in the same tableFeatures call. A processing factory alone cannot install that feature's APIs or state.
  • Row-model factories use create*RowModel() feature slots. Their names and prerequisites are in the feature reference. They take no function-registry arguments.
  • filterFns, sortFns, and aggregationFns are feature slots, not table options. They require columnFilteringFeature, rowSortingFeature, and rowAggregationFeature, respectively.
  • Import individual built-ins such as sortFn_alphanumeric and register their conventional keys. Those keys become typed string names; 'auto' can resolve only registered functions. Pass a function directly when a column needs no named registry entry. Full registry exports bundle every built-in.
  • columnResizingFeature requires columnSizingFeature; globalFilteringFeature requires columnFilteringFeature. Check installed FeatureSlotPrereqs for other dependencies.
  • Use explicit features for normal construction. stockFeatures is a deliberate all-features convenience or temporary migration aid, with the corresponding bundle cost.

A missing API can mean missing registration. Check the concrete feature object before casting, recreating an API, or assuming v9 removed it.

Select references by the requested change

Read only references needed for the requested behavior and its dependencies, including features being added. An unrelated feature already registered on the table does not make its reference necessary.

Task involves Read
Manual modes, server data, mixed row-processing stages, or dataset scope Client/server ownership
Totals, multiple aggregations, grouped aggregate values, or custom aggregate definitions Aggregation
Facet option counts, numeric ranges, or incomplete server facets Column faceting
Per-column filters, filter functions, metadata, or nested-row filtering Column filtering
Group rows, placeholders, or grouping with expansion/pagination Grouping
Drag ordering or leaf-column order differing from state Column ordering
Sticky column regions, logical start/end, or pinning gaps Column pinning
Drag resize handles, gesture events, or resize performance Column resizing
Numeric widths, min/max limits, or model/CSS size mismatch Column sizing
Hidden columns, visibility-aware rendering, or hiding controls Column visibility
A search across columns or global-filter eligibility Global filtering
Hierarchical subrows, detail panels, or expansion/page interaction Expanding
Page slicing, counts, navigation, or page-index resets
Perguntas frequentes

Por que um recurso não funciona mesmo depois que escrevi o código?

A habilidade diz que o recurso precisa estar registrado na lista de recursos da tabela, e alguns recursos exigem que outro recurso já esteja registrado.

Onde ficam as funções de ordenação e de filtragem?

A habilidade diz que elas são slots de recurso na lista de recursos, e não opções simples da tabela.

Preciso ler a referência de cada recurso?

Não. A habilidade recomenda ler apenas as referências que correspondem à tarefa.

Detalhes

Descrição original do autor

'Add or debug Table v9 features: registration, row-model slots, prerequisites, sorting, filtering, pagination, selection, spanning, and column layout. Read only task-relevant feature references.'

repo: TanStack/table

Popularidade

Estrelas no GitHub
29 mil
Posição no ranking
#9837
Licença
MIT
Atualizada em
21/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas