rangeItem: A range selection item

Description Usage Arguments Value Examples

Description

Editor is a slider (with spinbutton when by value is an integer).

Usage

1
2
rangeItem(value = "", from = 0, to = 10, by = 1, name, label = name,
  help = "", tooltip = "", attr, model, editor, ...)

Arguments

value

Default data frame for the model

from

Starting value of range

to

Ending value of range

by

Step size to step through range. If an integer, a spinbutton is also displaye

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 Item trait

Value

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

Examples

1
2
3
4
i <- rangeItem(value=5, from=0, to=10, by=1, name="rng")
i$get_rng()
i$set_rng(10)
i$get_rng()

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