mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 15:08:15 -07:00
Change which category is displayed when the category dropdown is changed
on the analyze page. Finishes #182277818
This commit is contained in:
parent
a04f797f30
commit
61978eb45d
8 changed files with 73 additions and 27 deletions
9
app/javascript/controllers/analyze_controller.js
Normal file
9
app/javascript/controllers/analyze_controller.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
// Connects to data-controller="analyze"
|
||||
export default class extends Controller {
|
||||
connect() { }
|
||||
change_category(event) {
|
||||
window.location = event.target.value
|
||||
}
|
||||
}
|
||||
|
|
@ -2,4 +2,7 @@
|
|||
// Run that command whenever you add a new controller or create them with
|
||||
// ./bin/rails generate stimulus controllerName
|
||||
|
||||
import { application } from "./application";
|
||||
import { application } from "./application"
|
||||
|
||||
import AnalyzeController from "./analyze_controller.js"
|
||||
application.register("analyze", AnalyzeController)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue