Socket
Book a DemoInstallSign in
Socket

manhattan-field-filled

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

manhattan-field-filled

Dispatch a 'filled' and 'empty' event against text inputs, selects and textareas whenever the field is filled or emptied.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Manhattan Field Filled

Dispatch a 'filled' and 'empty' event against text inputs, selects and textareas whenever the field is filled or emptied.

npm version Build Status Coverage Status dependencies status

Installation

npm install manhattan-field-filled --save-dev

Usage

import * as $ from 'manhattan-essentials'
import {addFilled} from 'manhattan-field-filled' 


$.listen(
    $.one('.some-input'),
    {
        'empty': (ev) => {
            this.classList.add('empty')
        },
        'filled': (ev) => {
            this.classList.add('filled')
        }
    }
)

addFilled()

Keywords

manhattan

FAQs

Package last updated on 12 Jul 2018

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