-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Add HxTrigger #11
Comments
What do you want to do with HxTrigger? In my new project I am using htmx-spring-boot in combination with Spring ViewComponent and it pairs nicely. |
Ah, I didn't know that you can pair them. I will give this a try. That would make the need for HxTriggers obsolet. I wanted to trigger a refresh for certain parts, when it's not directly related to the triggering change. A user adds a todo to the list, the list refreshes (inside a different component) Do you already know when 0.7. will be ready? |
0.7 is mostly done but I will change the template context still a bit as I want to only pass in the record to the template and not just the properties. But you can use 0.7-SNAPSHOT already as the tests are already passing. You can look at the example folder for a usage of the new record syntax. |
Yes, I am already on that branch and made my first test app. I like the
`kte` and the new record / template style. I had the same thought about
passing just the record (data class) into the template.
Tonight I am going to try to add htmx-spring-boot.
…On Thu, 14 Sept 2023 at 23:49, Thomas Schühly ***@***.***> wrote:
0.7 is mostly done but I will change the template context still a bit as I
want to only pass in the record to the template and not just the properties.
But you can use 0.7-SNAPSHOT already as the tests are already passing. You
can look at the example folder for a usage of the new record syntax.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANP2PEKDK6VRNEVPDILBPDX2N3W3ANCNFSM6AAAAAA4YS7V7A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I just added the dependency (
Maybe you have an idea. |
Can you post an example repo? |
Here is my playground. It's a little e-mail address playground app. If you have any tips on how to improve it, please let me know: I compared your and my project. After removing @EnableWebMvc the exception on startup was gone. Thanks for the help. I also added a few questions to the project: |
I have to take a look at supporting @PathVariable with ViewActions. I removed the EmptyContext as the template resolving is based the enclosing class of the data class/record |
Hey there, I removed the ViewActions from Spring ViewComponent in v0.8.0, as there is a better approach and the Annotation Processor added a lot of complexity. The goal is to create a functional approach for HTMX Endpoints described here in an extension at a later date: wimdeblauwe/htmx-spring-boot#104 btw, you can add |
First and most important: Thank you for building the awesome plugin. I think the combination Spring + JTE +. htmx has huge potential!
I was wondering, what you would think about a @HxTrigger annotation, like
htmx-spring-boot
has included:https://github.com/wimdeblauwe/htmx-spring-boot#response-headers
This is quite nice to have.
The text was updated successfully, but these errors were encountered: