genome_spy.binding

genome_spy.binding(*, autocomplete=Undefined, debounce=Undefined, description=Undefined, input=Undefined, name=Undefined, placeholder=Undefined)View on GitHub

Create a generic input binding.

Parameters:
  • autocomplete (str) – A hint for form autofill. See the HTML autocomplete attribute for additional information.

  • debounce (float) – If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired.

  • description (str) – An optional description or help text that is shown below the input element.

  • input (Literal['text', 'number', 'color']) – The type of input element to use. The valid values are "checkbox", "radio", "range", "select", "text", "number", and "color".

  • name (str) – By default, the parameter name is used to label input elements. This name property can be used instead to specify a custom label for the bound parameter.

  • placeholder (str) – Text that appears in the form control when it has no value set.