Skip to contents

Create a InlineEditable component

Usage

calcite_inline_editable(...)

Arguments

...

named attributes passed to htmltools::tag()

Value

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

Details

Properties

The following properties are provided by this component:

NameAttributeDescriptionValuesReflects to Attribute
afterConfirmNASpecifies a callback to be executed prior to disabling editing via the controls. When provided, the component's loading state will be handled automatically.Check API referenceFALSE
controlscontrolsWhen true and editingEnabled is true, displays save and cancel controls on the component.booleanTRUE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
editingEnabledediting-enabledWhen true, inline editing is enabled on the component.booleanTRUE
loadingloadingWhen true, a busy indicator is displayed.booleanTRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
scalescaleSpecifies the size of the component. Defaults to the scale of the wrapped calcite-input or the scale of the closest wrapping component with a set scale."l" | "m" | "s"TRUE

Events

The following events are observed by shiny:

EventDescription
calciteInlineEditableEditCancelEmits when the component's "cancel editing" button is pressed.
calciteInlineEditableEditConfirmEmits when the component's "confirm edits" button is pressed.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding a calcite-input.

Examples

calcite_inline_editable()
#> <calcite-inline-editable></calcite-inline-editable>