Add explanation of data-prompt-class et al.

I think I left these blank because I felt they should be obvious.
But I'd rather have it explicit.
master
voussoir 2020-09-04 14:50:47 -07:00
parent 139998172f
commit 5356b19858
1 changed files with 5 additions and 2 deletions

View File

@ -192,16 +192,19 @@ function init_button_with_confirm()
Optional:
data-prompt: Text that appears next to the confirm button. Default is
"Are you sure?".
data-prompt-class
data-prompt-class: CSS class for the prompt span.
data-confirm: Text inside the confirm button. Default is to inherit the
original button's text.
data-confirm-class: CSS class for the confirm button. Default is to
inheret all classes of the original button, except for
"button_with_confirm" of course.
data-cancel: Text inside the cancel button. Default is "Cancel".
data-cancel-class
data-cancel-class: CSS class for the cancel button.
data-holder-class: CSS class for the new span that holds the menu.
*/