Closed HAHOOS closed 3 years ago
Because buttons are an array
Oh so this will never be added?
Not in the propersition you have presented. I tend to find it bad form to have Name1, Name2, Name3 etc.
If you had another suggestion on how to implement an update function for buttons, please share :)
Ok
Oh so this will never be added?
Just update them by overriding the array. If you added them and want to update the first one:
var btn1 = new Button();
btn1.Label = "your label";
btn1.Url = "your url";
presence.Buttons[0] = btn1;
That's how I do it and it works perfectly fine.
Thanks for help!
@Lachee i see you added buttons, but there is no
UpdateButton1
andUpdateButton2
like: