gcalendar: A constructor for a date selection widget

Description Usage Arguments Value

View source: R/gcalendar.R

Description

The date is the main property of this widget

The svalue method for a calendar object returns the selected date

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
gcalendar(
  text = "",
  format = "%Y-%m-%d",
  handler = NULL,
  action = NULL,
  container = NULL,
  ...,
  toolkit = guiToolkit()
)

.gcalendar(
  toolkit,
  text = "",
  format = "%Y-%m-%d",
  handler = NULL,
  action = NULL,
  container = NULL,
  ...
)

## S3 method for class 'GCalendar'
addHandlerChanged(obj, handler, action = NULL, ...)

## S3 method for class 'GCalendar'
svalue(obj, index = NULL, drop = NULL, ...)

Arguments

text

initial text

format

Date format

handler

handler called when changed

action

passed to handler

container

parent container

...

passed to add method of parent

toolkit

toolkit

obj

receiver object

index

ignored

drop

if TRUE return a character, else a Date class object.

Value

Returns an object of class GCalendar for which the following methods are overridden:

  1. svalue get the date

  2. svalue<- set the date

The change handler is inherited from gedit

If drop=TRUE a character string, else a Date class object.


gWidgets2 documentation built on Jan. 11, 2022, 1:07 a.m.