27 lines
560 B
JavaScript
27 lines
560 B
JavaScript
import { Controller } from "@hotwired/stimulus";
|
|
import { GisState } from "../state.js";
|
|
import UI from "../ui.js";
|
|
|
|
export default class extends Controller {
|
|
static values = {
|
|
'coords': String,
|
|
'group': String,
|
|
'id': String,
|
|
};
|
|
|
|
static targets = ['search'];
|
|
|
|
/**
|
|
*
|
|
* @param {Event} event
|
|
*/
|
|
submitSearch(event) {
|
|
event.preventDefault();
|
|
const data = new FormData(event.target);
|
|
|
|
for (const entry of data.entries()) {
|
|
console.log(entry[0]);
|
|
}
|
|
}
|
|
}
|