---
title: "au-widget-datasheet/IWidgetDatasheetConfig | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-datasheet.IWidgetDatasheetConfig/"
---

# au-widget-datasheet/IWidgetDatasheetConfig

> Represents table notification texts.

## Classes

### DataSheetTableTexts

#### Constructors

##### Constructor

```ts
new DataSheetTableTexts(init?): DataSheetTableTexts;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `init?` | `Partial`\<[`DataSheetTableTexts`](#datasheettabletexts)\> |

###### Returns

[`DataSheetTableTexts`](#datasheettabletexts)

#### Properties

##### tableIsEmpty

```ts
tableIsEmpty: string;
```

A message to be displayed when the table has no rows.

##### tableNotCreatedText

```ts
tableNotCreatedText: string;
```

A message to be displayed when the table is not created.

## Interfaces

### IWidgetDataSheetColumnScheme

Represents a column scheme for a table.

#### Properties

##### barcodeFormat?

```ts
optional barcodeFormat?: string;
```

##### barcodeSubType?

```ts
optional barcodeSubType?: string;
```

##### name

```ts
name: string;
```

The field name.

##### readonly?

```ts
optional readonly?: boolean;
```

If `true`, disables field editing.

##### type?

```ts
optional type?: string;
```

The field type.

##### value

```ts
value: string;
```

The default value.

***

### IWidgetDataSheetConfig

Provides properties that are used to create a [Datasheet](https://customerscanvas.com/dev/ui-framework/widgets/datasheet.html) widget.

#### Properties

##### allowedFileTypes

```ts
allowedFileTypes: string | string[];
```

Allowed file types.

##### customTexts?

```ts
optional customTexts?: DataSheetTableTexts;
```

Custom notification texts.

##### data

```ts
data: IWidgetDataSheetColumnScheme[];
```

A column scheme for a table.

##### fileName

```ts
fileName: string;
```

The name of the output file.

##### hideButtonsLeft?

```ts
optional hideButtonsLeft?: boolean;
```

If `true`, hides the **Export** and **Import** buttons.

##### hideButtonsRight?

```ts
optional hideButtonsRight?: boolean;
```

If `true`, hide the **Add row** and **Delete row** buttons.

##### itemsPerPage

```ts
itemsPerPage: number;
```

The number of items shown on one page

##### onCellTextChange?

```ts
optional onCellTextChange?: Function | Function[];
```

##### onRowChange?

```ts
optional onRowChange?: Function | Function[];
```

##### order?

```ts
optional order?: string[];
```

Array of column names defining the sort order.

##### scrollToRowEnabled?

```ts
optional scrollToRowEnabled?: boolean;
```

If `true`, scrolls the table to added or deleted row.

##### tableData

```ts
tableData: DataSheetRow[];
```

Table content.

##### updateItem

```ts
updateItem: any;
```
