moonstone/DaySelector

Exports the moonstone/DaySelector.DaySelector component.

import DaySelector from '@enact/moonstone/DaySelector';

Members

DaySelectorComponent

A component that allows the user to choose day(s) of the week.

import DaySelector from '@enact/moonstone/DaySelector';
Properties
longDayLabels
Boolean

Use long day names (Sunday, Monday..) for labels

If false short text will be displayed for the the days (Sun, Mon..)

Default: false

DaySelectorBaseComponent

A component that allows the user to choose day(s) of the week.

import {DaySelectorBase} from '@enact/moonstone/DaySelector';
Properties
disabled
Boolean

When true, applies a disabled style and the control becomes non-interactive.

onSelect
Function

Called when an item is selected. The first parameter will be an object containing a selected member, containing the array of numbers representing the selected days, zero indexed.

selected
ArrayNumberNumber

An array of numbers (0-indexed) representing the selected days of the week.

ArrayBooleanFunctionModuleNumberObjectString