# dmp-btn-toggle

> ``` npm i --save dmp-btn-toggle ```

Latest version **1.1.0** (published 2019-07-14) · 0 weekly downloads

## Install

```sh
npm install dmp-btn-toggle
pnpm add dmp-btn-toggle
yarn add dmp-btn-toggle
bun add dmp-btn-toggle
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-07-14 |
| First published | 2019-06-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ddmmcc |

## Links

- npm: https://www.npmjs.com/package/dmp-btn-toggle
- npm.io page: https://npm.io/package/dmp-btn-toggle

## Dependencies (1)

- [@polymer/polymer](https://npm.io/package/@polymer/polymer.md) ^3.0.1

## Recent versions

- 1.1.0 (latest) — 2019-07-14
- 1.0.2 — 2019-06-30

## README

# \<dmp-btn-toggle\>



## Install
```
    npm i --save dmp-btn-toggle
```

## Description

This component is a toggle button. It change state when is clicked
If the component has an attribute featured, and slot featured has an svg the component show a clickable icon to toggle featured-selected property.

## CSS Custom properties


| Name | Default | Description  |
|---|---|---|
| --backgroundColor  | lightblue  |   |
| --backgroundSelected  | #52b7d8  |   |
| --featuredBackground  | lightblue  |   |
| --featuredBackgroundSelected  | gold |   |
| --featuredStrokeColor  | transparent  |   |
| --featuredStrokeColorSelected  | transparent  |   |
|   |   |   |


## Properties

| Name | Description | Flow |
|---|---|---|
| value | Text in the button | IN |
| ownId | own id to use if item is in the list  | IN |
| selected | flag to check if button is on/off | IN/OUT |
| featured | flag to check show/hide featured selected option | IN |
| featuredSelected | flag to check if button featured is on/off | IN/OUT |
| disabled | flag to check if buttons is disabled/enabled | IN/OUT |

## Methods

| Name | Description |
|---|---|---|
| checkDisabled | returns component status |
| validation | Validate component |

## Events



## Install the Polymer-CLI

First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) and npm (packaged with [Node.js](https://nodejs.org)) installed. Run `npm install` to install your element's dependencies, then run `polymer serve` to serve your element locally.

## Viewing Your Element

```
$ polymer serve
```

## Running Tests

```
$ polymer test
```

Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.

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