Skip to contents

An R6 class and constructor function for datetime picker widgets

Usage

DatetimePicker(...)

NaiveDatetimePicker(...)

Arguments

...

Arguments passed to the inializer

Functions

  • DatetimePicker(): A constructor for dat picker widgets

  • NaiveDatetimePicker(): A constructor for dat picker widgets

Super classes

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

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 and time. If non-zero length, must have valid timezone info.

disabled

Boolean, whether the user can make changes

min

Minimum selectable date and time. If non-zero length, must have valid timezone info.

max

Maximum selectable date and time. If non-zero length, must have valid timezone info.

Methods

Inherited methods


Method validate_tz()

Check whether time zone is valid.

Usage

DatetimePickerClass$validate_tz(value)

Arguments

value

A value


Method validate_value()

Check wether "value" is within range.

Usage

DatetimePickerClass$validate_value(value)

Arguments

value

A date and time to be checked for validity


Method validate_min()

Validate the "min" field after assignment.

Usage

DatetimePickerClass$validate_min(min)

Arguments

min

A minimum date and time to be checked for validity


Method validate_max()

Validate the "max" field after assignment.

Usage

DatetimePickerClass$validate_max(max)

Arguments

max

A maximum date and time to be checked for validity


Method new()

Usage

Arguments

...

Arguments passed to the superclass initializer


Method clone()

The objects of this class are cloneable with this method.

Usage

DatetimePickerClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Super classes

RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::DatetimePicker -> NaiveDatetimePicker

Public fields

_model_name

Name of the Javascript model in the frontend

value

The date and time. If non-zero length, must have valid timezone info.

min

Minimum selectable date and time. If non-zero length, must have valid timezone info.

max

Maximum selectable date and time. If non-zero length, must have valid timezone info.

Methods

Inherited methods


Method validate_tz()

Check whether time zone is valid.

Usage

NaiveDatetimePickerClass$validate_tz(value)

Arguments

value

A value


Method validate_value()

Check wether "value" is within range.

Usage

NaiveDatetimePickerClass$validate_value(value)

Arguments

value

A date and time to be checked for validity


Method new()

Usage

Arguments

...

Arguments passed to the superclass initializer


Method clone()

The objects of this class are cloneable with this method.

Usage

NaiveDatetimePickerClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.