gt_update_select: Update a *gt* selection in Shiny

View source: R/shiny.R

gt_update_selectR Documentation

Update a gt selection in Shiny

Description

Update the selection in an interactive gt table rendered using render_gt(). The table must be interactive and have selection enabled (see opt_interactive()).

Usage

gt_update_select(outputId, rows, session = shiny::getDefaultReactiveDomain())

Arguments

outputId

Shiny output ID

⁠scalar<character>⁠ // required

The id of the gt_output() element to update.

rows

Row indices

⁠<integer>⁠ // required

The id of the gt_output() element to update.

session

Shiny session

⁠scalar<ShinySession>⁠ // required

The session in which the gt_output() element can be found. You almost certainly want to leave this as the default value.

Value

A call to the JavaScript binding of the table.

Function ID

12-3

See Also

Other Shiny functions: gt_output(), render_gt()


rstudio/gt documentation built on Dec. 2, 2024, 11:05 a.m.