Description Usage Arguments Details Value
Implementation varies wildly, but should provide at minimum
functionality of edit.data.frame
. A single mouse click on a
cell should select that cell, a double click should initiate
editing of that cell.
Assign handler to be called when a cell, row or column changes
For gdf svalue refers to the selected values.
visible
is used to refer to which rows are being shown.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | gdf(
items = NULL,
handler = NULL,
action = NULL,
container = NULL,
...,
toolkit = guiToolkit()
)
.gdf(
toolkit,
items = NULL,
handler = NULL,
action = NULL,
container = NULL,
...
)
## S3 method for class 'GDf'
addHandlerChanged(obj, handler, action = NULL, ...)
## S3 method for class 'GDf'
svalue(obj, index = NULL, drop = TRUE, ...)
## S3 replacement method for class 'GDf'
visible(obj) <- value
|
items |
data frame to edit |
handler |
called on cell change |
action |
passed to handler |
container |
parent container |
... |
passed to container's |
toolkit |
toolkit |
obj |
object receiving event and emitting a signal to the handler |
index |
NULL or logical. If |
drop |
NULL or logical. If widget supports it, drop will work as it does in a data frame or perhaps someother means. |
value |
value to assign for selection or property |
Contents of the data frame can be accessed via [
and manipulated with [<-
.
The save_data
reference class method can be called to
save the data into a variable with the specified name.
example in inst/examples/ex-gdf.R
An object of class gDf
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.