Skip to content

Ultra Table

nu-table is designed to solve the problem of writing a lot of table template code in projects, so it encapsulates a lot of common logic. These encapsulations can be simply classified as preset behaviors and preset logic.

When your table needs to interact with the server or requires multiple cell formats, UltraTable is the best choice. If you just want to render a table, it is recommended to use data-table or table.

Props

NameTypeDefaultDescription
isUltraTableInstance-Instance of the component
paginationboolean | PaginationPropstruePagination config

For more parameters, see data-table.

Methods (table)

NameTypeDescription
paginationOffsetPaginationTable pagination config
next() => voidGo to next page and request data
prev() => voidGo to previous page and request data
search(pagination?: ServerPaginationResolve) => Promise<void>Request content based on pagination info
reset() => Promise<void>Reset page and request data
request(pagination: ServerPaginationResolve) => DataResolved<T> | Promise<DataResolved<T>>Source request function
requestAll() => Promise<T>Request all data based on pagination info, usually for exporting .csv files

Released under the MIT License.