Sha256: 00698eb4bda940cce7c7b06bcf6d387fea58cfc38a62dc0b31b741a95e56733c
Contents?: true
Size: 350 Bytes
Versions: 366
Compression:
Stored size: 350 Bytes
Contents
import { Controller } from '@hotwired/stimulus' export default class extends Controller { static targets = ['selector'] get turboFrame() { return this.selectorTarget.dataset.turboFrame } reload() { document.querySelector(`[data-per-page-option="${this.selectorTarget.value}"][data-turbo-frame="${this.turboFrame}"]`).click() } }
Version data entries
366 entries across 366 versions & 1 rubygems