Welcome to PowerButtons’s documentation!

PowerButtons logo

PowerButtons is a library that adds additional functionality to buttons (or any other html component) in a web page. The idea is to simplify some tasks that we usually do in web pages, such as adding a confirmation dialog prior to submitting a form, or verifying that some condition is met prior to executing a function.

The most simple example is the next one:

<button data-confirm="Are you sure?">clickme</button>

And then the effect is that when the user clicks the button, a confirmation dialog will be shown, and if the user clicks Confirm, then the button will execute its action. If the user clicks Cancel, then the button will not continue its action.

Confirm button

The library also includes other type of buttons, such as verify button, asynctask button, showmessage button, formset button, formbutton button, etc. Please check the Actions in the library section for a complete list.

Note

You can get the source of PowerButtons at GitHub.