An R6 class and constructor function for date picker widgets

DatePicker(...)

Arguments

...

Arguments passed to the inializer

Functions

  • DatePicker(): A constructor for dat picker widgets

Super classes

RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> DatePicker

Public fields

_model_name

Name of the Javascript model in the frontend

_view_name

Name of the Javascript view in the frontend

value

The date

disabled

Boolean, whether the user can make changes

min

Minimum selectable date

max

Maximum selectable date

step

Date step used for the picker in days

Methods

Inherited methods


Method validate_value()

Check wether "value" is within range.

Usage

DatePickerClass$validate_value(value)

Arguments

value

A value


Method validate_min()

Validate the "min" field after assignment.

Usage

DatePickerClass$validate_min(min)

Arguments

min

A minimum value, should be an integer number.


Method validate_max()

Validate the "max" field after assignment.

Usage

DatePickerClass$validate_max(max)

Arguments

max

A maximum value, should be an integer number.


Method new()

Usage

Arguments

...

Arguments passed to the superclass initializer


Method clone()

The objects of this class are cloneable with this method.

Usage

DatePickerClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.