Skip to content

How to reference :value from :onchange command. #1159

Discussion options

You must be logged in to vote

Answering myself. {} is the placholder to use. The issue I was having was related to floats. I needed to include :round-digits 0 to make it a whole number.

(scale
  :class "media-scroller ${player.CanSeek == false ? "inactive" : "active"}"
  :round-digits 0
  :min 0 
  :max "${player.uDuration / 1000000}" 
  :onchange "playerctl --player${player.player} position {}"
  :value "${player.uPosition / 1000000}") 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LurkAndLoiter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant