TagsTable
TagsTable
is a React component that displays all tags created by an entity and allows renaming and deleting these tags.
Permissions
To access this component, the entity user must have
read
permissions for thetag
object. For more information, see List of permissions.
Preview
![`TagsTable` component preview.](https://files.readme.io/5e9e884-Screenshot_2023-08-24_at_12.36.47.png)
TagsTable
component preview.
Usage
Use the Tagstable
component in your application as shown:
import { TagsTable } from "@monite/sdk-react"
// This component must be rendered within the MoniteProvider wrapper
const TagsTablePage = () => {
return <TagsTable />;
};
Props
The following table shows all Tagstable
component properties, their types, and descriptions:
Prop | Type | Description |
---|---|---|
onChangeSort | function | This callback is called when the current sorting order for any column is changed. It returns the newly sorted field and order. |
The onChangeSort
takes one argument whose value is an object with the following fields:
sort
- the field name of column whose sort order was changed. For example,policy_name
.order
- the new sort order, eitherasc
ordesc
(
"sort": "policy_name",
"order": "asc" | "desc" | null
) => void
Updated 3 months ago