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.
This commit is contained in:
voussoir 2020-09-04 14:50:30 -07:00
parent fc4aebc4a4
commit 7d3a9fe03e

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.
*/