Closed gbthakkar closed 5 days ago
Hi! Due to some limitations in IDEs, the tag helpers using DictionaryAttributePrefix are not suggested. So you would have to write them without intellisense. They follow same convention as x-on directive from alpine js, so you can check the docs here. For example, if in alpine you have:
<input x-on:keyup.shift.enter="..." />
in Hydro it will be:
<input hydro-on:keyup.shift.enter="@(() => Model.SomeAction())" />
oh, ok. Do you think that this will work in future?
Hard to say. Not sure why IDEs are not showing even simple hydro-on
suggestion at all, since it's a valid tag helper. I would need to raise a ticket.
When it comes to customization of the handler behaviour, for example hydro-on:keyup.shift.enter
, that i doubt there will be intellisense for. There are many different combinations and there is not way to configure suggestions to it.
Closing for now since currently there is no solution for that, if you have more questions feel free to ask :)
I am trying to follow the example from document "Getting Started". And observed for the code below
that when I type "hydro" I do not see the intellisense for hydro-on:click
Please help.
Thank you.