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
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I can use
script onTableTHClick(colName string) {}along withonclickattribute.But when I use the same along with
@clickorx-on:clickof 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