Skip to contents

In an app made with mcp_app(trigger = "submit"), input changes wait until the user presses an apply button. Without one in the UI, the page adds its own at the bottom; use mcp_submit_button() to choose where it goes and what it says. The button is disabled until something changes.

Usage

mcp_submit_button(label = "Apply", class = "btn btn-primary")

Arguments

label

Button text.

class

CSS classes for the button.

Value

An htmltools <button> tag.

See also

Examples

mcp_submit_button("Run analysis")
#> <button type="button" class="btn btn-primary" data-shinymcp-submit="">Run analysis</button>