mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 13:36:59 +01:00
Add phx-track-static
This commit is contained in:
parent
6f012b6796
commit
38655142b0
2 changed files with 8 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ package object scalive extends HtmlTags with HtmlAttrs with ComplexHtmlKeys:
|
|||
private[scalive] lazy val linkState = dataPhxAttr("link-state")
|
||||
lazy val click = phxAttrJson("click")
|
||||
def value(key: String) = phxAttr(s"value-$key")
|
||||
lazy val trackStatic = htmlAttr("phx-track-static", BooleanAsAttrPresenceCodec)
|
||||
|
||||
implicit def stringToMod(v: String): Mod = Mod.Content.Text(v)
|
||||
implicit def htmlElementToMod(el: HtmlElement): Mod = Mod.Content.Tag(el)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue