![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
stimulus-bulma-modal
Advanced tools
This is a simple StimulusJS controller that gives a Bulma Modal Component the ability to close itself and watches the DOM to intelligently turn background scrolling on and off.
This assumes that StimulusJS and Bulma are already installed.
Add the stimulus-bulma-modal
module:
$ yarn add stimulus-bulma-modal
or
$ npm install stimulus-bulma-modal
First, register the controller with StimulusJS:
// application.js
import { Application } from 'stimulus';
import { BulmaModal } from 'stimulus-bulma-modal';
const application = Application.start();
application.register('modal', BulmaModal);
Next, you need to attach the controller to a Bulma modal. Because the controller operates within the modal, you'll need to add the is-active
class somewhere in the DOM outside of the modal element.
<button onclick="openModal()">Open the modal from outside.</button>
<div data-controller="modal" class="modal">
<div data-action="click->modal#close" class="modal-background"></div>
<div class="modal-content">
<div class="box has-text-centered">
This is a great modal.
</div>
</div>
<button data-action="click->modal#close" class="modal-close"></button>
</div>
Bug reports and pull requests are welcome on GitHub at https://github.com/stephendolan/stimulus-bulma-modal. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
This package is available as open source under the terms of the MIT License.
FAQs
A StimulusJS controller for Bulma modals.
The npm package stimulus-bulma-modal receives a total of 0 weekly downloads. As such, stimulus-bulma-modal popularity was classified as not popular.
We found that stimulus-bulma-modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.