File tree 1 file changed +11
-9
lines changed
samples/MinimalHtmxorApp/Components/Pages
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11
11
content, like these paragraph elements.
12
12
</p >
13
13
14
- <HtmxPartial >
15
- <div id = " counter " >
14
+ <div id = " counter " >
15
+ <HtmxPartial >
16
16
<p role =" status" >
17
17
Current count: @CurrentCount
18
18
</p >
19
- <button class =" btn btn-primary"
20
- hx-put =" /counter"
19
+ <button class =" btn btn-primary"
20
+ hx-put =" /counter"
21
21
hx-vals =' { "CurrentCount": @(CurrentCount) }'
22
- hx-target =" #counter"
23
- @onput =" IncrementCount" >Click me</button >
24
- </div >
25
- </HtmxPartial >
22
+ hx-target =" #counter"
23
+ @onput =" IncrementCount" >
24
+ Click me
25
+ </button >
26
+ </HtmxPartial >
27
+ </div >
26
28
27
29
@code {
28
30
[SupplyParameterFromForm ]
33
35
// Access the HtmxContextEventArgs to control
34
36
// the response headers to the client.
35
37
// E.g.: args.Response.StatusCode(201);
36
-
38
+
37
39
CurrentCount ++ ;
38
40
}
39
41
}
You can’t perform that action at this time.
0 commit comments