# selectbutton

```ts
import { SelectButtonModule } from '@anguless/angulux/selectbutton';
```

## SelectButton

`agl-selectButton, agl-selectbutton, agl-select-button` — component

Inherits every input, output and slot of `BaseEditableHolder` — see [baseeditableholder.md](baseeditableholder.md).

SelectButton is used to choose single or multiple items from a list using buttons.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `options` | `any[] \| undefined` | _not documented_ | An array of selectitems to display as the available options. |
| `optionLabel` | `string \| undefined` | _not documented_ | Name of the label field of an option. |
| `optionValue` | `string \| undefined` | _not documented_ | Name of the value field of an option. |
| `optionDisabled` | `string \| undefined` | _not documented_ | Name of the disabled field of an option. |
| `unselectable` | `` | _not documented_ |  |
| `tabindex` | `number` | _not documented_ | Index of the element in tabbing order. |
| `multiple` | `boolean \| undefined` | _not documented_ | When specified, allows selecting multiple values. |
| `allowEmpty` | `boolean` | _not documented_ | Whether selection can not be cleared. |
| `styleClass` | `string \| undefined` | _not documented_ | Style class of the component. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
| `dataKey` | `string \| undefined` | _not documented_ | A property to uniquely identify a value in options. |
| `autofocus` | `boolean \| undefined` | _not documented_ | When present, it specifies that the component should automatically get focus on load. |
| `size` | `'large' \| 'small' \| undefined` | `undefined` | Specifies the size of the component. |
| `fluid` | `` | `undefined` | Spans 100% width of the container when enabled. |

| Output | Type | Description |
| --- | --- | --- |
| `onOptionClick` | `EventEmitter<SelectButtonOptionClickEvent>` | Callback to invoke on input click. |
| `onChange` | `EventEmitter<SelectButtonChangeEvent>` | Callback to invoke on selection change. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #item>` | `itemTemplate` | Custom item template. |
