From 4db28f1a24e8f1f12f09cead52ce4604fee34dce Mon Sep 17 00:00:00 2001 From: sindhu Date: Sat, 18 May 2024 21:23:07 +0700 Subject: [PATCH] search inputan + dropdown serta pagination --- component/customdropdown/customdropdown.templ | 26 +--- .../customdropdown/customdropdown_templ.go | 132 +++++------------- .../customtextfieldsearch.templ | 6 +- .../customtextfieldsearch_templ.go | 36 +++-- handlers/dev/mastermenuuser.handlers.go | 52 ++++--- handlers/dev/mastermenuusergroup.handlers.go | 2 +- handlers/routes.go | 2 +- services/dev/mastermenuuser.services.go | 86 +++--------- views/dev/mastermenuuser/mastermenuuser.templ | 31 ++-- .../mastermenuuser/mastermenuuser_templ.go | 114 ++------------- 10 files changed, 139 insertions(+), 348 deletions(-) diff --git a/component/customdropdown/customdropdown.templ b/component/customdropdown/customdropdown.templ index ab0e67b..374b9ba 100644 --- a/component/customdropdown/customdropdown.templ +++ b/component/customdropdown/customdropdown.templ @@ -1,28 +1,16 @@ package customdropdown; -templ MainCustomDropdown(label string, name string, id string, hxTarget string, hxGet string, hxIndicator string, listItem templ.Component) { -
- - - @listItem - -
-} - -templ MainCustomDropdownV2(label string, name string, id string, listItem templ.Component) { -
- - diff --git a/component/customdropdown/customdropdown_templ.go b/component/customdropdown/customdropdown_templ.go index 71d5d52..4f0119d 100644 --- a/component/customdropdown/customdropdown_templ.go +++ b/component/customdropdown/customdropdown_templ.go @@ -10,7 +10,7 @@ import "context" import "io" import "bytes" -func MainCustomDropdown(label string, name string, id string, hxTarget string, hxGet string, hxIndicator string, listItem templ.Component) templ.Component { +func MainCustomDropdown(name string, id string, hxTarget string, hxGet string, hxIndicator string, hxTrigger string, hxInclude string, listItem templ.Component) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) if !templ_7745c5c3_IsBuffer { @@ -23,42 +23,29 @@ func MainCustomDropdown(label string, name string, id string, hxTarget string, h templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("