Skip to content

hog-seruj/clickable-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clickable-block

Example:

Include js code:

import clickableBlock from  '@skilld/clickable-block';

const options = [
  {
    wrapper: '.wrapper-example',
    link: '.link-example',
    excludedClass: '.contextual', // Only if need to use another class. Now this parameter allows to click on the contextual links.
  }
];

(({ behaviors }) => {
  behaviors.theme_ClickableBlock = {
    attach(context) {
      clickableBlock({options, context});
    },
  };
})(Drupal);

Include css code:

@import "@skilld/clickable-block/index.css";

.wrapper-example {
  @extend %clickable-block;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published