Learn R Programming

traitr (version 0.14)

dateItem: A calendar date selection item

Description

A calendar date selection item

Usage

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

Run this code
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')

Run the code above in your browser using DataLab