We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The submit stops the propagation of changes from upstream blocks.
submit
E.g.: example below, change and submit second block, notice that block below does not re-render.
library(blockr) new_dat_block <- function( data, ... ) { blockr::new_block( name = "Cheat data", expr = quote(.(data)), fields = list( data = new_hidden_field(data) ), ..., class = c("dat_block", "data_block") ) } new_block_add <- function() { new_block( fields = list( n = new_numeric_field(1L, min = 1L, max = 10L) ), submit = TRUE, expr = quote({ row <- data.frame( value = rep(sample(1:9, 1), .(n)) ) row$label <- sample(letters, 1) rbind.data.frame(data, row) }), class = c("do_nothing", "transform_block") ) } df <- data.frame( label = "FIRST", value = 1L ) stack <- new_stack( new_dat_block(df), new_block_add(), new_block_add() ) serve_stack(stack) ``
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
submit
stops the propagation of changes from upstream blocks.E.g.: example below, change and submit second block, notice that block below does not re-render.
The text was updated successfully, but these errors were encountered: