@skilld/clickable-block

1.0.3 • Public • Published

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;
}

Package Sidebar

Install

npm i @skilld/clickable-block

Weekly Downloads

69

Version

1.0.3

License

ISC

Unpacked Size

2.44 kB

Total Files

4

Last publish

Collaborators

  • nguerrier
  • finnsky
  • maahes
  • koskinpark
  • hog_seruj