Replies: 1 comment
-
I think @click={ onTableTHClick(colName).Call } // not tested |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, I can use
script onTableTHClick(colName string) {}
along withonclick
attribute.But when I use the same along with
@click
orx-on:click
of alpinejs, templ is reporting the following error.cannot use onTableTHClick(colName) (value of type templ.ComponentScript) as string value in argument to templ.EscapeStringcompiler[IncompatibleAssign](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#IncompatibleAssign)
How to use script components along with attributes other than
onclick
?Beta Was this translation helpful? Give feedback.
All reactions