1 Commits
Author SHA1 Message Date
HugoNijhuis d5fe90b224 feat(ui): add LetterSpacing and LineHeight methods to View
CI / build (push) Successful in 27s
2026-08-15 18:29:29 +02:00
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v7.0.0
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Build WASM
+10
View File
@@ -175,3 +175,13 @@ func (v View) TextDecoration(value string) View {
v.e.Get("style").Call("setProperty", "text-decoration", value)
return v
}
func (v View) LetterSpacing(spacing string) View {
v.e.Get("style").Call("setProperty", "letter-spacing", spacing)
return v
}
func (v View) LineHeight(height string) View {
v.e.Get("style").Call("setProperty", "line-height", height)
return v
}