mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 13:36:59 +01:00
Support live navigation
This commit is contained in:
parent
0b067aa7e1
commit
d42472061b
5 changed files with 63 additions and 30 deletions
|
|
@ -17,8 +17,8 @@ class HomeLiveView() extends LiveView[String, Unit]:
|
|||
cls := "space-y-2",
|
||||
links.map((path, name) =>
|
||||
li(
|
||||
a(
|
||||
href := path,
|
||||
link.navigate(
|
||||
path,
|
||||
cls := "block px-4 py-2 rounded-lg text-gray-700 hover:bg-gray-100 hover:text-gray-900 font-medium transition",
|
||||
name
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue