How to correctly set Progress Bar css variable ? #807
-
I try to set css variable like following:
but it was not worked Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
YamiOdymel
Apr 25, 2022
Replies: 1 comment 1 reply
-
document.querySelector(".ts-progress .bar").style.setProperty('--value', 50); 這是考慮到未來可能一個 Progress 會支援多個 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jzzxh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--value
需要指定在.bar
上,用法類似這是考慮到未來可能一個 Progress 會支援多個
.bar
而做的決定