@flextable/core
v0.1.2
Published
Framework-agnostic core: column registry, sorting/filtering/pinning/pagination logic, error and i18n adapters shared by @flextable/react and @flextable/vue.
Maintainers
Readme
@flextable/core
Framework-agnostic core of FlexTable: the ColumnFactory
column registry, sorting/filtering/pinning/pagination helpers, and the ApiError/i18n adapters
shared by @flextable/react and
@flextable/vue. Zero framework dependencies —
this package never imports React or Vue.
Install
bun add @flextable/coreYou won't usually install this directly — it's a peer/dependency of @flextable/react and
@flextable/vue, which pull it in automatically.
What's in here
ColumnFactory— a typed column builder (select,avatar,name,text,date,count,badge,actions,expandRow, plusregisterColumnType/customfor your own kinds) that produces framework-agnosticColumnConfigdescriptors.@flextable/react'stoReactColumnDef()and@flextable/vue'stoVueColumnDef()turn those into real TanStack Table column defs.PaginationController— shared client/server pagination math.ApiError— a base error class with an injectableErrorCodeAdapter, decoupled from any specific backend contract.- Helpers —
resolveClassName, fuzzy-search filtering, date filtering, column-pinning math, sorting comparators. - Types —
EntityLike,TranslateFn,FlexTableKeys,PaginatedResponse/PaginationQuery.
Docs
Full guides and the generated API reference live at donilite.github.io/Flextable.
