user commit1
This commit is contained in:
22
component/customdropdown/customdropdown.templ
Normal file
22
component/customdropdown/customdropdown.templ
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user