selectorWidget: Dialog to select items from a list

Description Usage Arguments Value Author(s)

View source: R/widget.R

Description

Presents the user with a dialog box to select items from a list.

Usage

1
2
3
selectorWidget(options, selected = character(0), title = "Selector",
               ordersel = FALSE, ordernsel = FALSE, 
               height = max(10,min(20,length(options))))

Arguments

options

vector, options to be selected from

selected

vector, subset of options selected by default

title

character scalar, window title

ordersel

boolean, keep the selected items in order?

ordernsel

boolean, keep the not selected items in order?

height

scalar, height of the two listboxes

Value

A character vector containing the selected items. If a vector of a different class was initially provided, it must be manually coerced back to the correct type.

Author(s)

Colin A. Smith, annaffy@colinsmith.org


annaffy documentation built on Nov. 8, 2020, 8:02 p.m.