Skip to contents

Create a InputTimeZone component

Usage

calcite_input_time_zone(...)

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
clearableclearableWhen true, an empty value (null) will be allowed as a value. When false, an offset or name value is enforced, and clearing the input or blurring will restore the last valid value.booleanTRUE
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
formformThe 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.stringTRUE
maxItemsmax-itemsSpecifies the component's maximum number of options to display before displaying a scrollbar.numberTRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
modemodeThis specifies the type of value and the associated options presented to the user: Using "offset" will provide options that show timezone offsets. Using "name" will provide options that show the IANA time zone names."name" | "offset" | "region"TRUE
namenameSpecifies the name of the component. Required to pass the component's value on form submission.stringTRUE
offsetStyleoffset-styleSpecifies how the offset will be displayed, where "user" uses UTC or GMT depending on the user's locale, "gmt" always uses GMT, and "utc" always uses UTC. This only applies to the offset mode."gmt" | "user" | "utc"TRUE
openopenWhen true, displays and positions the component.booleanTRUE
overlayPositioningoverlay-positioningDetermines the type of positioning to use for the overlaid content. Using "absolute" will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. "fixed" should be used to escape an overflowing parent container, or when the reference element's position CSS property is "fixed"."absolute" | "fixed"TRUE
readOnlyread-onlyWhen true, the component's value can be read, but controls are not accessible and the value cannot be modified.booleanTRUE
referenceDatereference-dateThis date will be used as a reference to Daylight Savings Time when creating time zone item groups. It can be either a Date instance or a string in ISO format ("YYYY-MM-DD", "YYYY-MM-DDTHH:MM:SS.SSSZ").Date | stringFALSE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
statusstatusSpecifies the status of the input field, which determines message and icons."idle" | "invalid" | "valid"TRUE
validationIconvalidation-iconSpecifies the validation icon to display under the component.boolean | stringTRUE
validationMessagevalidation-messageSpecifies the validation message to display under the component.stringFALSE
validityNAThe current validation state of the component.Check API referenceFALSE
valuevalueThe component's value, where the value is the time zone offset or the difference, in minutes, between the selected time zone and UTC. If no value is provided, the user's time zone offset will be selected by default.stringFALSE

Events

The following events are observed by shiny:

EventDescription
calciteInputTimeZoneBeforeCloseFires when the component is requested to be closed and before the closing transition begins.
calciteInputTimeZoneBeforeOpenFires when the component is added to the DOM but not rendered, and before the opening transition begins.
calciteInputTimeZoneChangeFires when the component's value changes.
calciteInputTimeZoneCloseFires after the component is closed and animation is complete.
calciteInputTimeZoneOpenFires after the component is opened and animation is complete.

Examples

calcite_input_time_zone()
#> <calcite-input-time-zone></calcite-input-time-zone>