block_option: Create a block for options

View source: R/compositions.R

block_optionR Documentation

Create a block for options

Description

An object that represents a single selectable item in a select menu, multi-select menu, radio button group, or overflow menu.

Usage

block_option(text, value, description = NULL, url = NULL)

Arguments

text

character, text that defines the text shown in the option on the menu.

value

character, The string value that will be passed to your app when this option is chosen.

description

character, text that defines a line of descriptive text shown below the text field beside the radio button. Default: NULL

url

character, A URL to load in the user's browser when the option is clicked. Default: NULL

Value

block_option class

See Also

Other compositions: block_confirm(), block_option_groups(), block_text()

Examples

block_option(text = 'Maru',value = 'maru')

yonicd/slackblocks documentation built on March 2, 2023, 6:53 a.m.