Pode.Web icon indicating copy to clipboard operation
Pode.Web copied to clipboard

Add ClickName parameter on Buttons, to change value when clicked

Open Badgerati opened this issue 2 years ago • 0 comments

When a Button is clicked, a spinner will appear to show that it is processing. What could also be useful is to have a -ClickName parameter which will change the value on the button as well, when clicked. When the processing is done, the callback to update the value back to the -DisplayName will need to occur before any actions are processed.

For example, when clicked it will go from Submit to Submitting, or from Create to Creating.

This is just for New-PodeWebButton, but potentially worth investigating Forms and Steps as well.

Badgerati avatar May 01 '23 21:05 Badgerati