| Metric | R Documentation |
See metric().
Widget -> Metric
formatterfunction(value) returning a string.
valueThe value (reactive).
deltaThe change shown next to the value (reactive).
Widget$add_class()Widget$ancestors()Widget$animate()Widget$arrange_children()Widget$bind()Widget$bind_reactive()Widget$bindings()Widget$blur()Widget$capture_mouse()Widget$child_clip()Widget$clear()Widget$computed_style()Widget$content_height()Widget$content_width()Widget$default_bindings()Widget$focus()Widget$format()Widget$get_state()Widget$has_class()Widget$invalidate()Widget$invalidate_paint()Widget$is_displayed()Widget$is_enabled()Widget$layout_descend()Widget$layout_differs()Widget$matches()Widget$mount()Widget$on()Widget$paint()Widget$post_message()Widget$print()Widget$pseudo_states()Widget$query()Widget$query_one()Widget$refresh()Widget$release_mouse()Widget$remove()Widget$remove_children()Widget$remove_class()Widget$render_lines()Widget$replace()Widget$run_action()Widget$run_process()Widget$run_worker()Widget$set()Widget$set_interval()Widget$set_state()Widget$set_timeout()Widget$toggle_class()Widget$walk()Metric$new()Create a metric. See metric().
Metric$new( label, value = NA, delta = NULL, format = NULL, id = NULL, classes = NULL, style = NULL )
labelLabel.
valueValue.
deltaChange.
formatFormatter.
id, classes, styleSee Widget.
Metric$default_style()The built-in style.
Metric$default_style()
Metric$update()Set the value (and optionally the delta).
Metric$update(value, delta = NULL)
valueNew value.
deltaNew delta (NULL keeps none).
Metric$render()Label, value and delta lines.
Metric$render()
Metric$clone()The objects of this class are cloneable with this method.
Metric$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.