ns-appointment-picker
#
Introduction
ns-appointment-picker
is used to select a date and time slot for an appointment.
ns-appointment-picker
is used to select a date and time slot for an appointment. The component is comprised of an ns-calendar
to pick the date, and an ns-slot-picker
to show the available time slots.
#
Best practice๐ Do's | ๐ Don'ts |
---|---|
Use this when the customer needs to select a date and a time slot for an appointment | Use to select an appointment slot on a single date. Use ns-slot-picker instead |
Use ns-slot-picker to surface the best suitable slots for a customer before presenting the full appointment picker, where appropriate. | Don't force customers to use the appointment picker first if there is very poor appointment availability. Present the next available appointments in a slot picker first. |
Use ns-highlighter alongside ns-appointment-picker to surface any important notifications regarding a customer booking. | |
Use multiple appointment pickers in ns-tabs so users can easily access different types of bookings. |
#
UsageThe main property/attribute of ns-appointment-picker
is slotData
. This would typically be set by setting the property through code as it is a fairly complex object.
#
Usage exampleKey | Description |
---|---|
A | ns-calendar - Calendar component |
B | ns-slot-picker - Slot picker component |
#
SpecificationAttribute | Type | Default | Options | Description |
---|---|---|---|---|
slotdata | array | Array of objects representing dates. |
Event | Description |
---|---|
change | Dispatched when a specific slot is selected |
#
Slot DataThe slotData array should consist of objects containing a date property and a slots property.
date: String - eg. 2020-01-28 (28th January 2020) slots: Array of objects with a name and value property
#
Component placementThe ns-appointment-picker component can be used in the following components:
#
Feedback- Do you have insights or concerns to share? You can raise an issue via Github bugs.
- See all the issues already raised via Github issues.
๐ฉ ๐ ๐ฆ If you have any questions, contact us on Microsoft Teams in the Nucleus Design System channels.