Sha256: 9d25644b2a631b5dd23c1874628ca2bfd304fb811922f6c8aad2488b5c345bf5

Contents?: true

Size: 353 Bytes

Versions: 318

Compression:

Stored size: 353 Bytes

Contents

import BaseFilterController from './filter_controller'

export default class extends BaseFilterController {
  static targets = ['selector']

  getFilterValue() {
    return this.selectorTarget.value === '' ? null : this.selectorTarget.value
  }

  getFilterClass() {
    const { filterClass } = this.selectorTarget.dataset

    return filterClass
  }
}

Version data entries

318 entries across 318 versions & 1 rubygems

Version Path
avo-3.16.5 app/javascript/js/controllers/select_filter_controller.js
avo-3.16.4 app/javascript/js/controllers/select_filter_controller.js
avo-3.16.3 app/javascript/js/controllers/select_filter_controller.js
avo-3.16.2 app/javascript/js/controllers/select_filter_controller.js
avo-3.16.1 app/javascript/js/controllers/select_filter_controller.js
avo-3.16.0 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.7 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.6 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.5 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.4 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.3 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.2 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.1 app/javascript/js/controllers/select_filter_controller.js
avo-3.15.0 app/javascript/js/controllers/select_filter_controller.js
avo-3.14.5 app/javascript/js/controllers/select_filter_controller.js
avo-3.14.4 app/javascript/js/controllers/select_filter_controller.js
avo-3.14.3 app/javascript/js/controllers/select_filter_controller.js
avo-3.14.2 app/javascript/js/controllers/select_filter_controller.js
avo-3.14.1 app/javascript/js/controllers/select_filter_controller.js
avo-3.14.0 app/javascript/js/controllers/select_filter_controller.js