---
id: gravityview-datatables-button_.button
title: "Filter - gravityview/datatables/button_ . $button"
sidebar_label: "gravityview/datatables/button_ . $button"
tags:
  - "2.0"
---

# Filter: gravityview/datatables/button_ . $button

Customise the button export options ( `type` is 'pdf', 'csv', 'excel', 'colvis' ).

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $button_config | `array` | Associative array of button options (mandatory 'extend' and 'text' (e.g. add pdf orientation with 'orientation' =&gt; 'landscape' ). |
| $button | `string` | The button type. |
| $view_id | `int` | View ID. |

### Since

- [2.0](../../since/2-0/)

### Source

Defined in `includes/extensions/class-datatables-buttons.php` at line 227

