Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement action-based click events #1686

Merged
merged 3 commits into from
Jan 6, 2023
Merged

implement action-based click events #1686

merged 3 commits into from
Jan 6, 2023

Conversation

MaxVerevkin
Copy link
Collaborator

Closes #1519

Example:

[[block]]
block = "music"
# Click anywhere to play/pause
[[block.click]]
button = "left"
action = "play_pause"

TODO:

  • Improve docs
  • Mention breaking changes

@ammgws ammgws added this to the v0.30.0 milestone Dec 22, 2022
@MaxVerevkin
Copy link
Collaborator Author

I thick this + #1605 can be used to register click events for specific placeholders:

format = " $icon.str(name:icon) $value "
[[block.click]]
button = "left"
widget = "icon"
cmd = "..."

Not sure how useful this is though.

@MaxVerevkin MaxVerevkin added enhancement configuration Changes to or issues with configuration files breaking Breaking changes labels Jan 6, 2023
@MaxVerevkin MaxVerevkin merged commit 4e10eee into master Jan 6, 2023
@MaxVerevkin MaxVerevkin deleted the new_click_events branch January 6, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking changes configuration Changes to or issues with configuration files enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overriding default click actions
3 participants