1.0.3 • Published 6 years ago

focus-limit v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Focus Limit

A Javascript library that limits the area the elements can be focused in.

Installation and Usage

Install the library with npm install --save focus-limit or yarn add focus-limit.

Import the library to your project:

import focusLimit from 'focus-limit';

Initialize the limiter on any node:

const formLimiter = focusLimit(document.querySelector('.form'));

// Call method 'limit'

formLimiter.limit();

// Call method 'unlimit' when you don't need limitation

formLimiter.unlimit();

Methods

MethodDescription
limit()Limits the aria of focus
unlimit()Unlimits the aria of focus
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago