Sha256: 37893885d9fe541f44313a494eca6722ff6e40aa4c3246a9c7101a73fc5b8ac5

Contents?: true

Size: 412 Bytes

Versions: 379

Compression:

Stored size: 412 Bytes

Contents

import BaseFilterController from './filter_controller'

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

  getFilterValue() {
    return this.textTarget.value
  }

  tryToSubmit(e) {
    if (e.keyCode === 13) {
      return this.changeFilter()
    }

    return undefined
  }

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

    return filterClass
  }
}

Version data entries

379 entries across 379 versions & 1 rubygems

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