user commit1

This commit is contained in:
sindhu
2024-05-17 10:52:14 +07:00
parent 9ab0c7b6f4
commit 02983cbd1b
11 changed files with 2297 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package customdropdown;
import (
"cpone/layout"
"cpone/models"
)
templ MainCustomDropdown(label string, name string, id string, hxTarget string, hxGet string, hxIndicator string, listItem templ.Component) {
<div class="form-group">
<label for="exampleSelect1">{ label }</label>
<select
name={ name }
class="form-control bg-field"
id={ id }
hx-get={ hxGet }
hx-target={ hxTarget }
hx-indicator={ hxIndicator }
>
@listItem
</select>
</div>
}