kit-date-picker

README

Handle complex logic of date-picker.

Why

Date-picker UI-component should be simple.

API

[class] KitDatePickerService

@Injectable

Service encapsulates complex date-picker grid logic.

Example

Members

SignatureDescription
get active()

Get active date.

set active(date: Date)

Set active date.

get gridChanges(): Observable<KitDatePickerGrid>

Observable with grid state.

get monthCursorChanges(): Observable<Date | null>

Observable with month cursor state.

get pick(): Observable<Date>

Observable with pick date events.

get weekdays(): Date[]

Weekdays array.

focus(date: Date)

Focus date (open correspondent month).

modMonth(modifier: number)

Modify opened month.

modYear(modifier: number)

Modify opened year.

handleMove(target: any)

Handle keyboard movement.

[interface] KitDatePickerGridItem

Members

SignatureDescription
active(): boolean
date(): Date
focus(): boolean
outside(): boolean