Skip to contents

Add input binding to a vega-lite spec.

Usage

vl_bind_input(
  spec,
  parameter_name,
  projection_name = NULL,
  autocomplete = NULL,
  debounce = NULL,
  element = NULL,
  name = NULL,
  placeholder = NULL,
  .object = NULL
)

Arguments

spec

An input vega-lite spec

parameter_name

Name of parameter to add binding to

projection_name

Name of projection (field or encoding) within selection

autocomplete

A hint for form autofill. See the HTML autocomplete attribute for additional information.

debounce

If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired.

element

An optional CSS selector string indicating the parent element to which the input element should be added. By default, all input elements are added within the parent container of the Vega view.

name

By default, the signal name is used to label input elements. This name property can be used instead to specify a custom label for the bound signal.

placeholder

Text that appears in the form control when it has no value set.

.object

Directly input an object, rather than creating one via the other arguments. Should not be used in conjunction with the other arguments other than spec. Objects can be of type: BindInput

Value

A modified Vega-Lite Spec