Dialog Trigger Button
Description
A button that opens a dialog.
Usage
bc_dialog_trigger(dialog_id, ..., aria_label = NULL)
Arguments
| Argument | Description |
|---|---|
dialog_id |
String. The ID of the dialog to open. |
... |
Additional attributes passed to the <button>. |
aria_label |
String. Accessible name, needed when the trigger has no visible text such as an icon-only button. |
Value
A button that opens the specified dialog.
Examples
bc_dialog_trigger("terms-dialog", class = "btn", "Open Dialog")
bc_dialog(
id = "terms-dialog",
title = "Terms",
description = "The dialog the button above opens."
)