# button-input-field

> This is an anglar component (module) that button input style for form input field

Latest version **0.1.3** (published 2022-05-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install button-input-field
pnpm add button-input-field
yarn add button-input-field
bun add button-input-field
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2022-05-08 |
| First published | 2022-05-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 70 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Boni |
| Maintainers | wavecoders |
| Keywords | angular, input, ui, material, field, button, formControl, form |

## Links

- npm: https://www.npmjs.com/package/button-input-field
- Homepage: https://wavecoders.ca
- npm.io page: https://npm.io/package/button-input-field

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2022-05-08
- 0.1.2 — 2022-05-03
- 0.1.0 — 2022-05-02
- 0.0.2 — 2022-05-02
- 0.0.1 — 2022-05-02

## README

# Button Input Field

This is an anglar component (module) that has a style and feel of a button. Hover hilights the button and you must click to edit and enter the input state. Once completed the user may choose to tab (blur), click the checkmark (icon) or press return to exit the editable state.

This is a formControl and can easily be added to a formgroup the typical way. There are also event (change) you can register actions.

## Intsallation

```
npm install button-input-field
```

Then import the module `ButtonInputFieldModule`

and add the component

```
<wav-button-input-field></wav-button-input-field>
```

## Inputs

The following Inputs are available

| Input | Type | Defaut | Description |
| ----- | ---- | ------ | ----------- |
| label        | STRING     | NULL    | label for input |
| placeholder  | STRING     | NULL    | placeholder for input |
| copypaste    | BOOLEAN    | FASLE   | button for copy contents |
| readonly     | BOOLEAN    | FASLE   | read only |
| disabled     | BOOLEAN    | FASLE   | disable input |

## Output

The following Inputs are available

| Output | Type | Description |
| ----- | ---- | ------ | ----------- |
| changed      | STRING | event emitter on change |

## FormControl

The component is a formControl and accepts all events types

## Options

```
<wav-button-input-field
  label="Service full name description"
  placeholder="Local-Pro Transact"
  formControlName="application"
  (changed)="onUpdateBasicInfo()"
></wav-button-input-field>
```

## Sample Implementation

```
selection: formGroup

constructor(
  private fb: FormBuilder
  ) {}

ngOnInit() {

  selection = this.fb.group({
    country: [null]
  })

  this.selection.patchValue({ country: 'Canada'})
  this.selection.valueChanges.subscribe(data => console.log(data))

  }
  ```

---
_Source: https://npm.io/package/button-input-field · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
