rivafarabi / deckboard-kit

Deckboard app extention starter
MIT License
15 stars 5 forks source link

[Documentation] #10

Open zeitos opened 11 months ago

zeitos commented 11 months ago

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 commented 10 months ago

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 commented 8 months ago

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 commented 8 months ago

@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 :)