dateItem: A calendar date selection item

Description Usage Arguments Value See Also Examples

Description

A calendar date selection item

Usage

1
2
dateItem(value = "", format_string, name, label = name, help = "",
  tooltip = "", attr, model, editor, ...)

Arguments

value

Default data frame for the model

format_string

String to specify format of date to return. See strftime for codes. default value is '%Y-%m-%d'

name

Required name for object. Names should be unique within a group of items

label

Optional label, default value is the name

help

Optional help string

tooltip

Optional tooltip to display

attr

A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200))

model

Optional model. Useful if one wishes to use same model for multiple views

editor

Specification of editor (a view) to override default

...

Passed to parent proto object during call to proto

Value

A proto object. Call obj$show_help() to view its methods and properties.

See Also

Item

Examples

1
2
3
d <- dateItem(name="d") ## basic usage, no initial date.
# specify intial date and reformat -- can't start in that format, it is amibiguous
d <- dateItem('2000-12-25', format_string='\%m-\%d-\%Y', name='d')

traitr documentation built on May 2, 2019, 3:32 p.m.