Add support for “data” in button_to_dialog and link_to_dialog.