gcalendar: calendar widget

Description Usage Arguments Value Note Examples

Description

Basic text box with button to open calendar picker dialog. The svalue method refers to the date, which depends on the value of format.

Usage

1
2
3
  gcalendar(text = "", format = NULL, handler = NULL,
    action = NULL, container = NULL, ..., width = NULL,
    height = NULL, ext.args = NULL)

Arguments

text

optional inital date as text.

format

format of date. Default of Y-m-d.

handler

optional handler bound via addHandlerChanged

action

optional value to paramaterize handler

container

parent container

...

passed along to add call of the container. Can be used to adjust layout parameters. May also have other uses.

width

a pre-specified width (in pixels) for the widget

height

a pre-specified height (in pixels) for the widget

ext.args

A list of extra arguments to pass to the ExtJS constructor

Value

a GCalendar instance

Note

the svalue method returns an instance of Date class by conversion through as.Date.

Examples

1
2
3
w <- gwindow("Calendar")
sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w)
a <- gcalendar(cont=w)

jverzani/gWidgetsWWW2.rapache documentation built on May 20, 2019, 5:19 a.m.