Stub form controller

This commit is contained in:
2026-05-22 18:39:40 +02:00
parent c313194e15
commit f83f95a51a
3 changed files with 104 additions and 65 deletions

View File

@@ -0,0 +1,26 @@
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);
}
}
}