Sha256: b94da2514b37a9acb8e58273bdea0e18dbd32e7ce0b4c5b5a921b42b65766a44

Contents?: true

Size: 340 Bytes

Versions: 131

Compression:

Stored size: 340 Bytes

Contents

import { Controller } from '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

131 entries across 131 versions & 1 rubygems

Version Path
avo-1.22.2 app/javascript/js/controllers/per_page_controller.js
avo-1.22.1 app/javascript/js/controllers/per_page_controller.js
avo-1.22.1.pre.2 app/javascript/js/controllers/per_page_controller.js
avo-1.22.1.pre.1 app/javascript/js/controllers/per_page_controller.js
avo-1.22.0 app/javascript/js/controllers/per_page_controller.js
avo-1.22.0.pre.1 app/javascript/js/controllers/per_page_controller.js
avo-1.21.1.pre.1 app/javascript/js/controllers/per_page_controller.js
avo-1.21.0 app/javascript/js/controllers/per_page_controller.js
avo-1.20.2.pre.2 app/javascript/js/controllers/per_page_controller.js
avo-1.20.2.pre.1 app/javascript/js/controllers/per_page_controller.js
avo-1.21.0.pre.1 app/javascript/js/controllers/per_page_controller.js
avo-1.20.1 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.11 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.10 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.9 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.8 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.7 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.6 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.5 app/javascript/js/controllers/per_page_controller.js
avo-1.19.1.pre.4 app/javascript/js/controllers/per_page_controller.js