1.0.2 • Published 12 months ago
alpinejs-insert-before-last-heading v1.0.2
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
12 months ago