2.0.0 • Published 7 months ago

stimulus-checkbox v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

License: MIT npm.io npm.io

https://nodei.co/npm/stimulus-checkbox.png?downloads=true&downloadRank=true&stars=true

Usage

Installation

yarn add stimulus-checkbox

Register the controller to your StimulusJS application

import {Application} from '@hotwired/stimulus'
import * as Checkbox from 'stimulus-checkbox'

const application = Application.start()
application.register('checkbox', Checkbox)

within your view

<div data-controller="checkbox">
  <input
    type="checkbox"
    data-checkbox-target="btn"
    data-action="change->checkbox#toggle"
  />
  <input
    type="checkbox"
    data-checkbox-target="box"
    data-action="change->checkbox#toggleOne"
  />
</div>
2.0.0

7 months ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago