1.0.2 • Published 2 years ago

alpinejs-insert-before-last-heading v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Alpine.js Insert Before Last Heading directive

This directive moves the DOM element before the last heading inside the given container. The container's selector should be defined as the attribute's value.

Installation

npm install @theqnaco/alpinejs-insert-before-last-heading

yarn add @theqnaco/alpinejs-insert-before-last-heading

Usage

<div x-data x-insert-before-last-heading="#container-of-the-headings">
  <!-- Content -->
</div>
1.0.2

2 years ago