List Documents
ListDocumentsComponent
The ListDocumentsComponent
element allows you to visualize the documents inside the TDBReactTable and query the documents using the advanced search component.
Installation
Install the dependencies from npm
Properties
Properties | Description |
---|---|
type | The document type |
gqlQuery | The graphql query |
apolloClient | An apollo client instance - documentation |
tableConfig | An object with the table configuration to pass to the TDBReactTable Component |
advancedSearchConfig | An object with the advancedSearch configuration to pass to the Advanced Search Component |
onRowClick | A function that acts as a callback when the table row is clicked |
onViewButtonClick | A function that acts as a callback when the table row view button is clicked |
onEditButtonClick | A function that acts as a callback when the table row edit button is clicked |
onDeleteButtonClick | A function that acts as a callback when the table row delete button is clicked |
onCreateButtonClick | A function that acts as a callback when the create button is clicked |
showGraphqlTab | A boolean property that enables the GraphQL query view tab |
Example
View the ListDocumentsComponent integrated inside a dashboard here
Last updated