---
title: clear_button Plugin
description: API Reference for clear_button Plugin
---
# API Documentation for clear_button Plugin
<a name="options"></a>

## options : <code>object</code>
Object of options available for "clear_button" plugin

**Kind**: global typedef  
**Author**: [Fabien Winkler](https://github.com/fabienwnklr)  

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [title] | <code>string</code> | <code>&quot;Clear&quot;</code> | Title for the clear button |
| [className] | <code>string</code> | <code>&quot;clear&quot;</code> | Class name for the clear button |
| [label] | <code>string</code> | <code>&quot;×&quot;</code> | [props=data] Label for the clear button |
| [html] | <code>function</code> |  | Method used for rendering |

**Example**  
```js
$('select').selectize({
 plugins: [
   {
     clear_button: {
       title: 'Custom title',
       className: 'custom-class',
       label: 'custom label',
       html: (data) => {
         return (
           `<a class="${data.className}" title="${data.title}">${data.label}</a>`;
       }
    }
  }
 ]
});
```
