tabletop-companion/app/javascript/controllers/dice_roll_controller.js

10 lines
177 B
JavaScript
Raw Normal View History

2024-06-13 16:04:25 +00:00
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = [ "input" ]
rollDice() {
this.element.requestSubmit()
}
}