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
Name | Type | Default | Description |
---|---|---|---|
is | UltraTableInstance | - | Instance of the component |
pagination | boolean | PaginationProps | true | Pagination config |
For more parameters, see data-table.
Methods (table)
Name | Type | Description |
---|---|---|
pagination | OffsetPagination | Table pagination config |
next | () => void | Go to next page and request data |
prev | () => void | Go 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 |