# PageToolsPluginOptions

## Content

# Type Alias: PageToolsPluginOptions

```ts
type PageToolsPluginOptions = object;
```

PageToolsPlugin options.

## Properties

### buttonPosition?

```ts
optional buttonPosition: number | false;
```

The position where the "Page tools" button should be inserted. Use `false` or `-1` to skip insertion. Undefined means the position will be determined automatically.

***

### toolbarLayout?

```ts
optional toolbarLayout: PageToolButtonKey[];
```

The page tools toolbar layout.

#### Default

```ts
Default layout:
["rotate-image", "flip-horizontal", "flip-vertical", "crop-image", "resize-image"]
```

#### Example

```javascript
<script src="gcimageviewer.js"></script></head>
<script src="plugins/pageTools.js"></script>
<script>
  const viewer = new DsImageViewer("#root");
  const pageToolsPlugin = new PageToolsPlugin( { toolbarLayout: ["rotate-image", "flip-horizontal"] } );
  viewer.addPlugin(pageToolsPlugin);
</script>
```
