-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shahrul
committed
Oct 10, 2024
1 parent
fead59f
commit 6627906
Showing
7 changed files
with
183 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
return <div | ||
id="foo" | ||
style="color;red"> | ||
test | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
local id = '1' | ||
local class = "test" | ||
local val = "todo A" | ||
local val2 = "todo A Label" | ||
local val3 = "todo A Value" | ||
local val4 = "install Destroy" | ||
local val5 = "install TodoDblclick" | ||
return <li id={id} class={class} _="on destroy my.querySelector('button').click()"> | ||
<div class="view"> | ||
{val} | ||
<label | ||
hx-trigger="dblclick" | ||
hx-patch="/edit-todo?id="..{id}.."&foo="..{class} | ||
hx-target="next input" | ||
hx-swap="outerHTML" | ||
_="install TodoDblclick" | ||
> | ||
{val2} | ||
</label> | ||
<button | ||
class="destroy" | ||
hx-delete="/remove-todo?id="..{id} | ||
hx-trigger="click" | ||
hx-target="closest <li/>" | ||
hx-swap="outerHTML" | ||
_={val4} | ||
/> | ||
</div> | ||
{val3} | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.