alpinejs-insert-before-last-heading
v1.0.2
Published
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.
Downloads
3
Readme
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>