Mini Calendar component setup

task brazil Updated Sep 10, 2026 4 min read mini-calendar-component-uib-setup.md
Raw file servicenow.com

The Mini Calendar component is used for calendars in which a user must select a specific date and time. Examples might be a date range, a calendar month or day view, or an appointment date.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for Mini Calendar that differentiates it from other components in the content tree.

    A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "mini-calendar-content-tree.png"] Alt text: Shows the mini calendar component in the UI Builder content tree

  2. Select the Mini Calendar component using one of these methods:

    • Click anywhere within the component on the page.
    • Select the label you created for your component in the content tree. The configuration options appear in the panel on the right.

    [Omitted image "mini-calendar-properties.png"] Alt text: Shows the available properties for the mini calendar component in the Config panel

Parent Topic:UIB Setup Information

Mini Calendar component properties

Configure the basic format for the Mini Calendar component and what features are displayed. This includes the optional time field.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Label [property]

Description

Autofocus[autofocus]

Configures component to receive focus on mounting when set to true.Default: false

Description[description]

Additional content describing the field. Use this content to provide further instructions to the user.

First Day of Week[firstDayOfWeek]

Day of the week on which the calendar starts.Possible values are:

  • Sunday=0
  • Monday=1
  • Tuesday=2
  • Wednesday=3
  • Thursday=4
  • Friday=5
  • Saturday=6

Format[format]

Format describing how to format the date/time values. By default it is YYYY-MM-DD or YYYY-MM-DD hh:mm:ss, depending on whether you are showing a time picker.

Invalid[invalid]

Specifies whether the current value is not valid.

Label[label]

A label for the calendar.

Language[language]

User's preferred language.Default: en

Messages[messages]

Array of message objects that must contain the message and message type.

Name[name]

Name for the calendar. Any events dispatched by the calendar use this name.

ReadOnly[readOnly]

Specifies that the user cannot modify the value of the calendar.Default: false

Required[required]

Specifies if the user is required to supply a value for this calendar.Default: false

Reversed[reversed]

Specifies that the field should be rendered from right-to-left.Default: false

Show 'Ok' Button[onOk]

Specifies whether or not to show the Ok button.Default: false

Show 'Cancel' Button[onCancel]

Specifies whether or not to show the Cancel button.Default: false

Show Time Picker[timePicker]

Specifies whether or not to show the time picker, in addition to the calendar.Default: false

Value[value]

Underlying data for the component.

## Mini Calendar component events

Select event handlers to configure the events provided with the Mini Calendar component. Event handlers work with data resources to link the Mini Calendar actions to the data you want to display to your users.

The Events tab shows the events used by the Mini Calendar component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Mini Calendar actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event descriptions

Event

Description

On Ok Click

The user selects the Ok button.Payload:

  • name
  • event

On Cancel Click

The user selects the Cancel button.Payload:

  • name
  • event

OnValueChange

The user selects a new value on the calendar.Payload includes: value

Search documentation
Search document titles and file paths on the brazil branch