Skip to content

alexherbo2/modal.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modal.js

A way to create modal interfaces with filters.

A live demo can be found in Krabby.

Installation

Add modal.js to your project.

Usage

A minimal configuration to get started:

const modal = new Modal
modal.enable('Text', 'Command')
modal.map('Command', ['KeyJ'], ({ repeat }) => scroll.down(repeat), 'Scroll down', 'Scroll')
modal.map('Command', ['KeyK'], ({ repeat }) => scroll.up(repeat), 'Scroll up', 'Scroll')

Note: The commands scroll with scroll.js.

You can find some examples in Krabby.

Read the documentation for a complete reference.

About

A way to create modal interfaces with filters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published