1.0.3 • Published 3 years ago

@skilld/clickable-block v1.0.3

Weekly downloads
97
License
ISC
Repository
github
Last release
3 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;
}
1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago