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

[Documentation] #10

Open
zeitos opened this issue Nov 30, 2023 · 3 comments
Open

[Documentation] #10

zeitos opened this issue Nov 30, 2023 · 3 comments

Comments

@zeitos
Copy link

zeitos commented Nov 30, 2023

Hi,
I want to create actions to change the output card/microphone. I can do that with the extension to run commands/run apps. But I now want to display the current selected output/input.

I saw that the clock extension basically changes a button label but I don't quite understand how that works and I can't find an API documentation. 

The code for decboard-clock uses sets the value for both formats but I don't understand how and why that gets displayed 

I was looking to something like `this.setLabelText('')`
@Simego
Copy link

Simego commented Jan 8, 2024

i have the same issue, i need to update label, or value if can't change label but even looking at examples, they are not clear at all, plus there are some modes that i can't find anywhere which values can we use, for your issue above you probably need to set "mode": "custom-value" but in my case i would prefer if it was the label
@rivafarabi if you can by any chance just give a bit of info on it, also how to update button values in general, color, icon etc, on the fly (on action)

@plwxb
Copy link

plwxb commented Feb 15, 2024

Any update on this yet? I'm trying to simply change the label, but the examples are not very understandable. Additionally, there is no documentation available about setvalue.

@Simego
Copy link

Simego commented Feb 15, 2024

@plwxb take a look on the last update i sent to discord-deckboard with value toggle on mic/phone, maybe it helps, you lose the icon but at least you can see a value

and yes documentation or better support for value on label not substitution to icon would be great, color settings as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants