Skip to content

rainjeck/clickout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLICKOUT

Delete class if click outside element.

Files

Include clickout.min.js.

Layout

<div class="js-clickout"></div>

Usage

var clickout = new clickOut.default(options);

Options

  • className: '.js-clickout' - class name where outside click
  • activeClass: 'is-active' - class name for delete
  • after: function(elements) {} - after click