-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for static val() wrapper
- Loading branch information
Benedikt Strehle
committed
Oct 7, 2024
1 parent
b25fca8
commit 371e03a
Showing
4 changed files
with
80 additions
and
0 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,27 @@ | ||
call(function({ title, icon, children }) { | ||
return <div class="card"> | ||
<span title="Dialog schließen" onclick:frontend={()=>{ | ||
return use(this) && this.closeDialog(); | ||
}} class="desktop-close"><i class="fa-solid fa-xmark"/></span> | ||
<h1> | ||
<span title="Zurück" onclick:frontend={()=>{ | ||
use("silent-errors", this); | ||
return this.closeDialog(); | ||
}} class="mobile-back"><i class="fa-solid fa-chevron-left"/></span> | ||
{_$(()=>icon && <i class={`fas ${icon}`} style="margin-right:10px"/>)} | ||
{title} | ||
</h1> | ||
{...children} | ||
{...children} | ||
{..._$(()=>[ | ||
1, | ||
2, | ||
3 | ||
])} | ||
{..._$method([ | ||
1, | ||
2, | ||
3 | ||
], "map", (item)=><span>{item}</span>)} | ||
</div>; | ||
}); |
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,4 @@ | ||
<div> | ||
<div>{val(x.y)}</div> | ||
<div>{val(x())}</div> | ||
</div>; |