Workday Canvas

Time Picker

Time Pickers allow users to enter a time by selecting a value (hour, minute, AM/PM) from a popup.

Sources
Figma

Note

Our Time Picker makes use of the native iOS compact style Time Picker to take advantage of the most familiar and expected time selection experience for our users. All behaviors and interactions follow the default native iOS guidelines.

Image of the native iOS compact Time Picker

Usage Guidance

  • The Time Picker is made up of both an input and a picker.
  • The Time Picker allows the selection of a single time, while the input invokes the picker and then displays the user’s selection.
  • The Time Picker defaults to the standard selection based entry method but also provides the option of a keyboard based entry.

When to Use

  • When a normal time value (hour, minute, AM/PM) is needed.

When to Consider Something Else

  • If a determinate time frame is needed (ie. 30 minutes, 2 hours or 6 days) use another selection based input, either a prompt, checkbox, radio or wheel.
  • If an indeterminate time frame is needed use a text or number input.

Refer to the iOS guidelines on the compact Time Picker for more information.

API Guidelines

Methods

Class name: LabelledTimePicker Module name: UIComponentsPlugin

public init( featureData: FeatureMetricsData, selection: Binding<Date?>, label: String, helperText: String?, context: Binding<SemanticContext>, dateFormatter: DateFormatter? = nil, localizer: LocalizationAdapting, locale: Locale? = nil )

Parameters

NameDescriptionDefault values
featureDatathe feature name/context and the screen ID in which the component appears.
selectionoptional date/time selected by the user. This parameters provides a means of passing back the user selection back to the features that are using this component. When the component loads, we display this as the current selection and fallback on the current time if this field does not have a value.
labelLabel to be positioned above field, already localized.
helperTextHelper text below field, already localized.
contextSemanticContext of the field.
dateFormatterDateFormatter of the field.nil
localizerLocalizer for the field.
localeOptional server locale, if not provided we default to the device locale.nil

Accessibility Guidelines

  • Coming soon…

Can't Find What You Need?

Check out our FAQ section which may help you find the information you're looking for. For further information, contact the #ask-canvas-design or #ask-canvas-kitchannels on Slack.

On this Page: