Resultset Table

Ready

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.

Props

NameDefaultDescription
columns: object[][]An array of objects representing the columns of the table. Each object has the following properties:
  • displayValue: Column display value.
  • isSortable: Boolean value to indicate whether the column is sortable or not.
rows: object[][]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:
  • displayValue: Value to be displayed in the cell.
  • sortValue: Value to be used when sorting the table by that column. If not indicated displayValue will be used for sorting.
showGoToPage: booleantrueIf true, a select component for navigation between pages will be displayed.
itemsPerPage: number5Number of items per page.
itemsPerPageOptions: number[][]An array of numbers representing the items per page options.
tabIndex: number0Value of the tabindex attribute given to the sortable icon.
itemsPerPageFunction: functionThis function will be called when the user selects an item per page option. The value selected will be passed as a parameter.
margin: string | objectSize of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'). You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.

Examples

Basic usage

Sortable