calcite_segmented_control: Create a SegmentedControl component

View source: R/components-generated.R

calcite_segmented_controlR Documentation

Create a SegmentedControl component

Description

Create a SegmentedControl component

Usage

calcite_segmented_control(...)

Arguments

...

named attributes passed to htmltools::tag()

Details

Properties

The following properties are provided by this component:

Name Attribute Description Values Reflects to Attribute
appearance appearance Specifies the appearance style of the component. "outline" | "outline-fill" | "solid" TRUE
disabled disabled When true, interaction is prevented and the component is displayed with lower opacity. boolean TRUE
form form The id of the form that will be associated with the component. When not set, the component will be associated with its ancestor form element, if any. string TRUE
layout layout Defines the layout of the component. "horizontal" | "vertical" TRUE
name name Specifies the name of the component. Required to pass the component's value on form submission. string TRUE
required required When true and the component resides in a form, the component must have a value in order for the form to submit. boolean TRUE
scale scale Specifies the size of the component. "l" | "m" | "s" TRUE
selectedItem NA The component's selected item HTMLElement. HTMLCalciteSegmentedControlItemElement FALSE
status status Specifies the status of the validation message. "idle" | "invalid" | "valid" TRUE
validationIcon validation-icon Specifies the validation icon to display under the component. boolean | string TRUE
validationMessage validation-message Specifies the validation message to display under the component. string FALSE
validity NA The current validation state of the component. Check API reference FALSE
value value The component's selectedItem value. string FALSE
width width Check API reference "auto" | "full" TRUE

Events

The following events are observed by shiny:

Event Description
calciteSegmentedControlChange Fires when the calcite-segmented-control-item selection changes.

Slots

The following slots are provided by this component:

Slot Description
Default (unnamed) A slot for adding calcite-segmented-control-items.

Value

an object of class calcite_component which is a subclass of shiny.tag

References

Official Documentation

Examples

calcite_segmented_control()

calcite documentation built on April 3, 2025, 7:11 p.m.