# ISimpleConfigurationTableProps

## Definition

```tsx
export interface ISimpleConfigurationTableProps {
    /** Context object for UXP features */
    uxpContext: IContextProvider;

    /** Function returning table data */
    data: () => Promise<RowData[]>;

    /** Text to display when there is no data */
    noDataText?: string;

    /** Columns for the editable table */
    columns: TableColumn[];

    /** Callback for adding a new item */
    onAddItem?: (item: RowData) => Promise<{ success: boolean, error?: string }>;

    /** Callback for updating an existing item */
    onUpdateItem?: (item: RowData) => Promise<{ success: boolean, error?: string }>;

    /** Callback for deleting an item */
    onDeleteItem?: (item: RowData) => Promise<{ success: boolean, error?: string }>;

    /** Enable drag and drop row reordering */
    onReorderItems?: (reorderedData: RowData[]) => Promise<{ success: boolean, error?: string }>;

    /** Role-based permissions */
    roles?: {
        /** Determines if user can add items */
        canAdd?: () => boolean;

        /** Determines if user can edit items */
        canEdit?: () => boolean;

        /** Determines if user can delete items */
        canDelete?: () => boolean;
    };

    /** Labels for buttons and notifications */
    labels?: {
        add?: string;
        save?: string;
        cancel?: string;
        delete?: string;
        edit?: string;
        saved?: string;
        deleted?: string;
    };
}
```

## Usage

```tsx
import { ISimpleConfigurationTableProps } from 'uxp/components';
```

## Related Types

* [IContextProvider](https://help.iviva.com/uxp/v5/additional-resources/types/icontextprovider)
* [IPartialContextProvider](https://help.iviva.com/uxp/v5/additional-resources/types/ipartialcontextprovider)
* [Language](https://help.iviva.com/uxp/v5/additional-resources/types/language)
* [ICustomThemes](https://help.iviva.com/uxp/v5/additional-resources/types/icustomthemes)
* [IThemeProps](https://help.iviva.com/uxp/v5/additional-resources/types/ithemeprops)
* [ThemeType](https://help.iviva.com/uxp/v5/additional-resources/types/themetype)
* [UserDetails](https://help.iviva.com/uxp/v5/additional-resources/types/userdetails)
* [NavigationLink](https://help.iviva.com/uxp/v5/additional-resources/types/navigationlink)
* [Routes](https://help.iviva.com/uxp/v5/additional-resources/types/routes)
* [ConfiguredPage](https://help.iviva.com/uxp/v5/additional-resources/types/configuredpage)
* [ComponentType](https://help.iviva.com/uxp/v5/additional-resources/types/componenttype)
* [IUXPFunctions](https://help.iviva.com/uxp/v5/additional-resources/types/iuxpfunctions)
* [ViewOverride](https://help.iviva.com/uxp/v5/additional-resources/types/viewoverride)
* [Environment](https://help.iviva.com/uxp/v5/additional-resources/types/environment)
* [ExecutionOptions](https://help.iviva.com/uxp/v5/additional-resources/types/executionoptions)
* [CachingOptions](https://help.iviva.com/uxp/v5/additional-resources/types/cachingoptions)
* [IDataFunction](https://help.iviva.com/uxp/v5/additional-resources/types/idatafunction)
* [QueryParams](https://help.iviva.com/uxp/v5/additional-resources/types/queryparams)
* [ExecutionResult](https://help.iviva.com/uxp/v5/additional-resources/types/executionresult)
* [ExecuteMicroserviceConfig](https://help.iviva.com/uxp/v5/additional-resources/types/executemicroserviceconfig)
* [ExecuteConfigBase](https://help.iviva.com/uxp/v5/additional-resources/types/executeconfigbase)
* [LucyQueryResult](https://help.iviva.com/uxp/v5/additional-resources/types/lucyqueryresult)
* [RowData](https://help.iviva.com/uxp/v5/additional-resources/types/rowdata)
* [TableColumn](https://help.iviva.com/uxp/v5/additional-resources/types/tablecolumn)
* [Column](https://help.iviva.com/uxp/v5/additional-resources/types/column)
