Resultset Table
Data table is a component with a high rate of usage within the applications. It allows to show the user a big amount of information in a simple and simplified way. All the information contained in the table has a grid structure, defining columns and rows to place the data and allow the users to scan, analazy, compare and filter that information.
Name | Type | Description | Default |
---|---|---|---|
Required columns | { displayValue: React.ReactNode; isSortable?: boolean; }[] | An array of objects representing the columns of the table. Each object has the following properties:
| - |
Required rows | { displayValue: React.ReactNode; sortValue?: string; }[] | An array of objects representing the rows of the table, you will have as many objects as columns in the table. Each object has the following properties:
| - |
showGoToPage | boolean | If true, a select component for navigation between pages will be displayed. | true |
itemsPerPage | number | Number of items per page. | 5 |
itemsPerPageOptions | number[] | An array of numbers representing the items per page options. | - |
itemsPerPageFunction | (value: number) => void | This function will be called when the user selects an item per page option. The value selected will be passed as a parameter. | - |
margin | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin | Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes. | - |
tabIndex | number | Value of the tabindex attribute applied to the sortable icon. | 0 |