New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dmp-btn-toggle

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmp-btn-toggle

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

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

<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

NameDefaultDescription
--backgroundColorlightblue
--backgroundSelected#52b7d8
--featuredBackgroundlightblue
--featuredBackgroundSelectedgold
--featuredStrokeColortransparent
--featuredStrokeColorSelectedtransparent

Properties

NameDescriptionFlow
valueText in the buttonIN
ownIdown id to use if item is in the listIN
selectedflag to check if button is on/offIN/OUT
featuredflag to check show/hide featured selected optionIN
featuredSelectedflag to check if button featured is on/offIN/OUT
disabledflag to check if buttons is disabled/enabledIN/OUT

Methods

| Name | Description | |---|---|---| | checkDisabled | returns component status | | validation | Validate component |

Events

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) 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. Run polymer test to run your application's test suite locally.

FAQs

Package last updated on 14 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts