ai

command module
v0.0.0-...-b447f90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 10 Imported by: 0

README

full stack app (templ, go, echo, htmx, and sqlite3)

package internal_views import "github.com/wr125/ai/views/db"

templ Data() { <option value={ "value" } > for i,v := range db.GetUserById() { <option value={ v.CustomerNo } > { v.CustomerName } </option> } @attachCustomerDropdownChange() </select> } script attachCustomerDropdownChange() { { const select = document.getElementById("CustomerDropdown"); if (!(select instanceof HTMLSelectElement)) { return } select.addEventListener("change", function () { select.disabled = true; const selectedCustomer = select.selectedOptions[0].value; htmx .ajax("GET", "/OrderForm/api/get/Customer", { swap: "multi:#OrderInfoFormContainer:outerHTML,#CustomerInfoFormContainer:outerHTML", values: { customer: selectedCustomer }, }) .then(() => { select.disabled = false; select.focus(); }); }); } }

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
templ: version: v0.2.543
templ: version: v0.2.543
db
errors_pages
templ: version: v0.2.543
templ: version: v0.2.543
internal_views
templ: version: v0.2.543
templ: version: v0.2.543
layout
templ: version: v0.2.543
templ: version: v0.2.543
partials
templ: version: v0.2.543
templ: version: v0.2.543

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL