# BooksDataTableBuilder

A BooksDataTableBuilder is used to setup and build two-dimensional arrays containing books.

### Constructor

```ts
new BooksDataTableBuilder(books): BooksDataTableBuilder;
```

#### Parameters

| Parameter | Type |
| :------ | :------ |
| `books` | [`Book`](https://bkper.com/docs/api/bkper-js/classes/book.md)[] |

#### Returns

`BooksDataTableBuilder`

### build()

```ts
build(): any[][];
```

Builds a two-dimensional array containing all Books.

#### Returns

`any`[][]

A two-dimensional array containing all Books

***

### hiddenProperties()

```ts
hiddenProperties(include): BooksDataTableBuilder;
```

Defines whether to include hidden properties (keys ending with underscore "_").
Only relevant when [properties](https://bkper.com/docs/api/bkper-js/classes/booksdatatablebuilder.md#properties) is enabled.
Default is false — hidden properties are excluded.

#### Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `include` | `boolean` | Whether to include hidden properties |

#### Returns

`BooksDataTableBuilder`

This builder with respective option, for chaining.

***

### ids()

```ts
ids(include): BooksDataTableBuilder;
```

Defines whether to include book ids.

#### Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `include` | `boolean` | Whether to include ids |

#### Returns

`BooksDataTableBuilder`

This builder with respective include ids option, for chaining.

***

### properties()

```ts
properties(include): BooksDataTableBuilder;
```

Defines whether to include custom book properties.

#### Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `include` | `boolean` | Whether to include properties |

#### Returns

`BooksDataTableBuilder`

This builder with respective include properties option, for chaining.
