autocomplete-fix.go 523 B

12345678910111213141516171819202122232425
  1. package vuetify
  2. import (
  3. "github.com/qor5/web"
  4. h "github.com/theplant/htmlgo"
  5. )
  6. func VAutocomplete(children ...h.HTMLComponent) (r *VAutocompleteBuilder) {
  7. r = &VAutocompleteBuilder{
  8. tag: h.Tag("v-autocomplete").Children(children...),
  9. }
  10. r.Attach("")
  11. return
  12. }
  13. func (b *VAutocompleteBuilder) ErrorMessages(v ...string) (r *VAutocompleteBuilder) {
  14. SetErrorMessages(b.tag, v)
  15. return b
  16. }
  17. func (b *VAutocompleteBuilder) FieldName(v string) (r *VAutocompleteBuilder) {
  18. b.tag.Attr(web.VFieldName(v)...)
  19. return b
  20. }