Skip to content

micro-js/can-select-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

can-select-text

Build status Git tag NPM version Code style

Check if an element can contain selectable text

Installation

$ npm install @f/can-select-text

Usage

var canSelectText = require('@f/can-select-text')

canSelectText(textInput) === true
canSelectText(checkboxInput) === false

API

canSelectText(node)

  • node - A DOM element to check for text selectability

Returns: A boolean value indicating whether or not text can be selected in this input

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published