1.0.0 • Published 5 years ago

clickable-block v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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