step 3 custom text field search

This commit is contained in:
sindhu
2024-05-03 21:50:20 +07:00
parent bac17e8a69
commit 59d21a6d6d
3 changed files with 23 additions and 3 deletions

View File

@@ -299,6 +299,24 @@ License: You must have a valid license purchased only from themeforest(the above
class="form-control bg-field border-0"
placeholder="Kode ..."
/>
<div>
<div id="alert"></div>
<button hx-get="/info"
hx-select="#info-details"
hx-swap="outerHTML"
hx-select-oob="#alert">
Get Info!
</button>
</div>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<!-- <span class="form-text text-muted"
>We'll never share your email with anyone else.</span
> -->

View File

@@ -9,7 +9,6 @@ import (
"github.com/emarifer/go-templ-project-structure/views/component/customtextfieldsearch"
)
templ MainNavbar(datamenu []services.MasterMenu) {
<div class="aside-menu-wrapper flex-column-fluid" id="kt_aside_menu_wrapper">
<!--begin::Menu Container-->
@@ -193,11 +192,9 @@ templ MainMasterMenuUserGroup(datamenu []services.MasterMenu) {
<div class="row">
@breadcrumadmin.MainBreadcrumbAdmin()
</div>
// EXAMPLE INPUTAN START
// inputan biasa
@customtextfield.MainCustomTextField("Kode", "Kode", "kode", "text")
// inputan dengan search
@customtextfieldsearch.MainCustomTextFieldSearch("cariNama", "Cari PID / Nama", "search", "/search", "input changed delay:500ms, search", "#search-results", ".htmx-indicator")
// EXAMPLE INPUTAN END

File diff suppressed because one or more lines are too long